Changeset d7a9df5 in OpenWorkouts-current for ow/templates/dashboard.pt


Ignore:
Timestamp:
Feb 10, 2019, 8:28:44 AM (5 years ago)
Author:
Borja Lopez <borja@…>
Branches:
current, feature/docs, master
Children:
e547af5
Parents:
6662a84
Message:

Done some improvements on the dashboard:

  • Remove hr/speed/cad info from the workouts list (too much info)
  • Added workout sport to the workouts list
  • Replaced full notes for each workout with a shortened/trimmed version (done this in the workouts list in the profile page too)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ow/templates/dashboard.pt

    r6662a84 rd7a9df5  
    5656            <ul class="workout-info">
    5757              <li>
     58                <tal:c tal:content="workout.sport"></tal:c>
     59              </li>
     60              <li>
    5861                <tal:c tal:content="workout.start_in_timezone(context.timezone)"></tal:c>
    5962              </li>
     
    7073            </ul>
    7174
    72             <ul class="workout-info" tal:define="hr workout.hr; cad workout.cad">
    73               <li tal:condition="hr">
    74                 <span i18n:translate="">HR (bpm)</span>:
    75                 <tal:c tal:content="hr['avg']"></tal:c>
    76                 <tal:t i18n:translate="">Avg.</tal:t>,
    77                 <tal:c tal:content="hr['max']"></tal:c>
    78                 <tal:t i18n:translate="">Max.</tal:t>
    79               </li>
    80               <li tal:condition="cad">
    81                 <span i18n:translate="">Cad</span>:
    82                 <tal:c tal:content="cad['avg']"></tal:c>
    83                 <tal:t i18n:translate="">Avg.</tal:t>,
    84                 <tal:c tal:content="cad['max']"></tal:c>
    85                 <tal:t i18n:translate="">Max.</tal:t>
    86               </li>
    87             </ul>
    88 
    89             <div class="workout-intro" tal:content="workout.notes"></div>
     75            <div class="workout-intro">
     76              <p tal:repeat="paragraph workout.trimmed_notes.split('\n')"
     77                 tal:content="paragraph"></p>
     78            </div>
    9079
    9180            <div class="workout-map" tal:condition="workout.has_gpx">
Note: See TracChangeset for help on using the changeset viewer.