"Fossies" - the Fresh Open Source Software Archive

Member "metadot/sitedata/skins/base_skin/templates/admin_button.tt2" (31 Mar 2004, 641 Bytes) of package /linux/www/old/Metadot6.4.5.4.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 [% IF portal_context.get_user.is_logged_in -%]
    2   [% subject = portal_context.get_subject %]
    3   [% IF portal_context.get_session.admin_mode -%]
    4 <a href="[% INCLUDE link_url.tt2 url_id='' url_isa='Session' url_op='edit_off' %]" class='text_button'>Disable editing</a>
    5   [%- ELSIF 
    6            subject.is_allowed_to_do('modify', portal_context.get_user)
    7         || (subject.can('user_has_permission_for_children') && subject.user_has_permission_for_children('modify', portal_context.get_user))
    8   -%]
    9 <a href="[% INCLUDE link_url.tt2 url_id='' url_isa='Session' url_op='edit_on' %]" class='text_button'>Enable editing</a>
   10   [%- END %]
   11 [%- END %]
   12