Ignore:
Timestamp:
29 Apr 2008, 13:13:32 (16 years ago)
Author:
joachim
Message:

introduce breadcrumbs for the academic-section, use them instead of up one
level.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_default/waeup_document_view.pt

    r3473 r3474  
    11<metal:body use-macro="here/main_template/macros/master">
    2     <metal:main fill-slot="main"
    3                 tal:define="info context/getDocumentInfo;
    4                 s_name context/getStudentNameInContext;
    5                 is_so info/is_sectionofficer;">
    6 
    7       <span tal:condition="not: info">
    8         <span tal:content="here/illegal_view" />
    9       </span>
    10       <span tal:condition="info">
    11    
    12       <a href="" tal:attributes="href string:${here/aq_parent/absolute_url}">
     2  <metal:main fill-slot="main"
     3              tal:define="info context/getDocumentInfo;
     4              s_name context/getStudentNameInContext;
     5              is_so info/is_sectionofficer;"
     6              >
     7    <span tal:condition="not: info">
     8      <span tal:content="here/illegal_view" />
     9    </span>
     10    <span tal:condition="info" tal:define="breadcrumbs context/getBreadCrumbs">
     11      <a tal:condition="not: breadcrumbs" href="" tal:attributes="href string:${here/aq_parent/absolute_url}">
    1312        <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
    1413        Up one level
    1514      </a>
     15      <div tal:condition="breadcrumbs">
     16        <span tal:repeat="crumb breadcrumbs"><a href="crumb"
     17                                                           tal:attributes="href crumb/url"
     18                                                           tal:content="crumb/title"></a>
     19          <span tal:condition="not: repeat/crumb/end">&gt;</span>
     20        </span>
     21      </div>
    1622     
    1723      <h3>
Note: See TracChangeset for help on using the changeset viewer.