Changeset eed2019 in OpenWorkouts-current


Ignore:
Timestamp:
Feb 6, 2019, 12:01:21 PM (5 years ago)
Author:
Borja Lopez <borja@…>
Branches:
current, feature/docs, master
Children:
40ee398
Parents:
0b6c6fc
Message:

Split user profile bio and workout notes into paragraphs in the user profile page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ow/templates/profile.pt

    r0b6c6fc reed2019  
    3131              <span><tal:email tal:content="context.email"></tal:email></span>
    3232            </p>
    33             <div class="profile-bio" tal:content="getattr(context, 'bio', '')"></div>
     33            <div class="profile-bio">
     34              <p tal:repeat="paragraph getattr(context, 'bio', '').split('\n')"
     35                 tal:content="paragraph"></p>
     36            </div>
    3437            <ul class="workout-options">
    3538              <li><a href=""
    36                  tal:attributes="href request.resource_url(context, 'edit')"
    37                  i18n:translate="">edit profile</a></li>
     39                     tal:attributes="href request.resource_url(context, 'edit')"
     40                     i18n:translate="">edit profile</a></li>
    3841              <li><a href=""
    39                  tal:attributes="href request.resource_url(context, 'passwd')"
    40                  i18n:translate="">change password</a></li>
     42                     tal:attributes="href request.resource_url(context, 'passwd')"
     43                     i18n:translate="">change password</a></li>
    4144            </ul>
    4245          </div>
     
    114117              </ul>
    115118
    116               <div class="workout-intro" tal:content="workout.notes"></div>
     119              <div class="workout-intro">
     120                <p tal:repeat="paragraph workout.notes.split('\n')"
     121                   tal:content="paragraph"></p>
     122              </div>
    117123
    118124              <div class="workout-map" tal:condition="workout.has_gpx">
Note: See TracChangeset for help on using the changeset viewer.