Changeset 1967


Ignore:
Timestamp:
09/03/07 14:22:20 (12 years ago)
Author:
pjotr
Message:

Fixes #1511, link will only be displayed for users with the rights to make that action

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/skins/lemill/portlet_material_actions.pt

    r1942 r1967  
    3939    <ul tal:condition="python:path_end!='history_view'"> 
    4040        <li><a href="" i18n:translate="label_view_history" tal:attributes="href string:${here_url}/history_view">History</a></li> 
    41         <li><a href="" i18n:translate="label_restore_this_version" tal:define="currentVersion here/REQUEST/version|nothing" tal:attributes="href python:test(is_editable, here_url + '/restoreAVersion?timestamp=' + currentVersion, test(isAnon, 'login_form', here_url + '/join_a_group'))">Restore this version</a></li> 
     41        <li><a href="" i18n:translate="label_restore_this_version" tal:define="currentVersion here/REQUEST/version|nothing" tal:attributes="href python:here_url + '/restoreAVersion?timestamp=' + currentVersion" tal:condition="is_editable">Restore this version</a></li> 
    4242    </ul> 
    4343</div> 
Note: See TracChangeset for help on using the changeset viewer.