Changeset 594fbe8 in OpenWorkouts-current for ow/templates/profile.pt


Ignore:
Timestamp:
Jan 29, 2019, 1:59:43 PM (5 years ago)
Author:
Segundo Fdez <segun.2@…>
Branches:
current, feature/docs, master
Children:
67fc2ed
Parents:
22eb5de
Message:

Added profile basic ui

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ow/templates/profile.pt

    r22eb5de r594fbe8  
    2121      <h2>
    2222          <tal:fullname tal:content="context.fullname"></tal:fullname>
    23           <tal:has-nickname tal:condition="context.nickname">
    24               (<tal:nickname tal:content="context.nickname"></tal:nickname>)
    25           </tal:has-nickname>
    2623      </h2>
    27       <h3>
    28         <tal:email tal:content="context.email"></tal:email>
    29       </h3>
    30       <h4>
    31         <a href=""
     24      <p>
     25        <tal:has-nickname tal:condition="context.nickname">
     26            <tal:nickname tal:content="context.nickname"></tal:nickname>
     27        </tal:has-nickname> (<tal:email tal:content="context.email"></tal:email>)
     28      </p>
     29      <ul class="workout-options">
     30        <li><a href=""
    3231           tal:attributes="href request.resource_url(context, 'edit')"
    33            i18n:translate="">edit profile</a> |
    34         <a href=""
     32           i18n:translate="">edit profile</a></li>
     33        <li><a href=""
    3534           tal:attributes="href request.resource_url(context, 'passwd')"
    36            i18n:translate="">change password</a>
    37       </h4>
     35           i18n:translate="">change password</a></li>
     36      </ul>
     37
    3838      <div class="profile-info">
    3939        <ul>
     
    8383      <div class="month-stats js-month-stats">
    8484        <svg width="600" height="300"></svg>
    85         <div class="filters js-filters">
    86           <a href="#" class="js-distance" i18n:translate="">distance</a>
    87           <a href="#" class="js-time" i18n:translate="">time</a>
    88           <a href="#" class="js-elevation" i18n:translate="">elevation</a>
    89         </div>
     85        <ul class="filters js-filters">
     86          <li><a href="#" class="js-distance" i18n:translate="">distance</a></li>
     87          <li><a href="#" class="js-time" i18n:translate="">time</a></li>
     88          <li><a href="#" class="js-elevation" i18n:translate="">elevation</a></li>
     89        </ul>
    9090      </div>
    9191
     
    107107
    108108     var year_chart = owjs.year_chart({
    109          chart_selector: 'div.js-month-stats svg',
    110          filters_selector: 'div.js-month-stats div.js-filters a',
     109         chart_selector: '.js-month-stats svg',
     110         filters_selector: '.js-month-stats .js-filters a',
    111111         url: "${request.resource_url(context, 'yearly')}",
    112112         current_month: "${current_month}",
Note: See TracChangeset for help on using the changeset viewer.