Changeset 2566


Ignore:
Timestamp:
7 Nov 2007, 11:28:56 (17 years ago)
Author:
joachim
Message:

make only visible for staff (in custom)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_directory/member_view.pt

    r1924 r2566  
    11<tal:block define="
    2   global id request/id;
     2  global id request/id|nothing;
    33  global dirname string:members;
    44  global dir here/portal_directories/?dirname;
    55  global dirtitle dir/title_or_id;
    6   "/>
    7   <metal:block use-macro="here/main_template/macros/master">
    8   <metal:block fill-slot="action_slot" tal:define="
    9                         actions python:context.getMembersDirectoryActions('view')">   
    10   <metal:block define-macro="members_actions">
    11   <div class="fontColornavigation fontShapeaverage cpsskinsHBox body" >
    12     <span tal:repeat="action actions" tal:omit-tag="">
    13       <a tal:define="icon_tag action/icon_tag"
    14          tal:attributes="href action/url;
    15          class python:icon_tag and 'noicon' or None"
    16          >
    17         <tal:block condition="python:icon_tag"
    18                    content="structure icon_tag"/>
    19         <tal:block condition="python:not icon_tag">
    20           <img tal:attributes="src
    21           string:${base_url}noicon.png;
    22           alt action/title"
    23           />
    24         </tal:block>
    25         <tal:block i18n:translate="" content="action/title" />
    26       </a>
    27     </span>
    28   </div>
     6  global allowed context/isStaff;"
     7  />
     8<metal:block use-macro="here/main_template/macros/master">
     9  <metal:block tal:condition="allowed"
     10               fill-slot="action_slot"
     11               tal:define="actions python:context.getMembersDirectoryActions('view')">   
     12    <metal:block define-macro="members_actions">
     13      <div class="fontColornavigation fontShapeaverage cpsskinsHBox body" >
     14        <span tal:repeat="action actions" tal:omit-tag="">
     15          <a tal:define="icon_tag action/icon_tag"
     16             tal:attributes="href action/url;
     17             class python:icon_tag and 'noicon' or None"
     18             >
     19            <tal:block condition="python:icon_tag"
     20                       content="structure icon_tag"/>
     21            <tal:block condition="python:not icon_tag">
     22              <img tal:attributes="src
     23              string:${base_url}noicon.png;
     24              alt action/title"
     25              />
     26            </tal:block>
     27            <tal:block i18n:translate="" content="action/title" />
     28          </a>
     29        </span>
     30      </div>
     31    </metal:block>
    2932  </metal:block>
    30   </metal:block>
    31 
    32   <metal:block fill-slot="main" tal:define="
    33          res python: dir.renderEntryDetailed(id);
    34          global rendered_main python: res[0];
    35          ds python: res[1];">
    36     <h3>
    37       <span tal:content="ds/fullname" />     
    38     </h3>
    39     <div tal:replace="structure rendered_main">Rendered main...</div>
    40     <input type="submit" name="back" i18n:attributes="value"
    41            class="standalone" value="button_back" onClick="history.back()" />
     33  <metal:block fill-slot="main">
     34    <metal:block tal:condition="not: allowed">
     35      <span tal:content="here/illegal_view" />
     36    </metal:block>
     37    <metal:block tal:condition="allowed">
     38      <metal:block tal:define="
     39      res python: dir.renderEntryDetailed(id);
     40      global rendered_main python: res[0];
     41      ds python: res[1];"
     42      >
     43        <h3>
     44          <span tal:content="ds/fullname" />     
     45        </h3>
     46        <div tal:replace="structure rendered_main">Rendered main...</div>
     47        <input type="submit" name="back" i18n:attributes="value"
     48               class="standalone" value="button_back" onClick="history.back()" />
     49      </metal:block>
     50    </metal:block>
    4251  </metal:block>
    4352</metal:block>
    44 
     53 
Note: See TracChangeset for help on using the changeset viewer.