Changeset 3ea428a in OpenWorkouts-current


Ignore:
Timestamp:
Feb 28, 2019, 9:51:46 AM (5 years ago)
Author:
Borja Lopez <borja@…>
Branches:
current, feature/docs, master
Children:
6d9d4a5
Parents:
a596867
Message:

Fixed a bug in the yearly stats chart in the profile page,
which caused the wrong weekly/monthly switcher selector to be highlighted
after reloading the profile page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ow/templates/profile.pt

    ra596867 r3ea428a  
    8787              </ul>
    8888
    89               <ul class="workout-options switcher js-switcher">
    90                 <li><a href="#" class="js-weekly" i18n:translate="">weekly</a></li>
    91                 <li><a href="#" class="js-monthly is-active" i18n:translate="">monthly</a></li>
     89              <ul class="workout-options switcher js-switcher"
     90                  tal:define="weekly 'week' in request.GET">
     91                <li>
     92                  <a href="#" class="" i18n:translate=""
     93                     tal:attributes="class 'js-weekly is-active' if weekly else 'js-weekly'">
     94                    weekly</a></li>
     95                <li>
     96                  <a href="#" class="" i18n:translate=""
     97                     tal:attributes="class 'js-monthly is-active' if not weekly else 'js-monthly'">
     98                    monthly</a></li>
    9299              </ul>
    93100            </div>
Note: See TracChangeset for help on using the changeset viewer.