Changeset 3474


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

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

Location:
WAeUP_SRP/base/skins
Files:
1 added
8 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_academics/certificate_view.pt

    r1783 r3474  
    44  <metal:body use-macro="here/main_template/macros/master">
    55    <metal:block fill-slot="header">
    6       <a href=""
     6      <a tal:condition="nothing" href=""
    77         tal:attributes="href string:${here/academicsParent}">
    88        <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
    99        Up one level
    1010      </a>
     11      <div class=""><span tal:repeat="crumb context/getBreadCrumbs"><a href="crumb"
     12                                                tal:attributes="href crumb/url"
     13                                                tal:content="crumb/title"></a>
     14          <span tal:condition="not: repeat/crumb/end">&gt;</span>
     15        </span>
     16      </div>
    1117      <h3 tal:content="here/title_or_id" />
    1218      <div tal:condition="python:0" tal:content="info/container_path"/>
  • WAeUP_SRP/base/skins/waeup_academics/certificates_view.pt

    r1783 r3474  
    44  <metal:body use-macro="here/main_template/macros/master">
    55    <metal:block fill-slot="header">
    6       <a href=""
     6      <a tal:condition="nothing" href=""
    77         tal:attributes="href string:${here/academicsParent}">
    88        <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
    99        Up one level
    1010      </a>
     11      <div class=""><span tal:repeat="crumb context/getBreadCrumbs"><a href="crumb"
     12                                                tal:attributes="href crumb/url"
     13                                                tal:content="crumb/title"></a>
     14          <span tal:condition="not: repeat/crumb/end">&gt;</span>
     15        </span>
     16      </div>
    1117      <h3 tal:content="here/title_or_id" />
    1218      <div tal:condition="python:0" tal:content="info/container_path"/>
  • WAeUP_SRP/base/skins/waeup_academics/courses_view.pt

    r3473 r3474  
    55                 global is_so context/isSectionOfficer;"
    66                 >
    7       <a href=""
     7      <a href="" tal:condition="nothing"
    88         tal:attributes="href string:${here/academicsParent}">
    99        <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
    1010        Up one level
    1111      </a>
    12       <h3 tal:content="here/aq_parent/LongTitle|here/aq_parent/title_or_id" />
    13       <h4 tal:content="here/title_or_id" />
    14       <div tal:condition="python:0" tal:content="info/container_path"/>
    15       <div tal:condition="python:0" tal:content="info/dep_id"/>
     12      <div class=""><span tal:repeat="crumb context/getBreadCrumbs"><a href="crumb"
     13                                                tal:attributes="href crumb/url"
     14                                                tal:content="crumb/title"></a>
     15          <span tal:condition="not: repeat/crumb/end">&gt;</span>
     16        </span>
     17      </div>
     18      <h3 tal:condition="nothing" tal:content="here/aq_parent/LongTitle|here/aq_parent/title_or_id" />
     19      <h3 tal:content="here/title_or_id" />
    1620    </metal:block>
    1721    <metal:main fill-slot="main" tal:condition="python: 1">
  • WAeUP_SRP/base/skins/waeup_academics/department_view.pt

    r3473 r3474  
    44  <metal:body use-macro="here/main_template/macros/master">
    55    <metal:block fill-slot="header">
    6       <a href=""
     6      <a tal:condition="nothing" href=""
    77         tal:attributes="href string:${here/academicsParent}">
    88        <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
    99        Up one level
    1010      </a>
     11      <div class=""><span tal:repeat="crumb context/getBreadCrumbs"><a href="crumb"
     12                                                tal:attributes="href crumb/url"
     13                                                tal:content="crumb/title"></a>
     14          <span tal:condition="not: repeat/crumb/end">&gt;</span>
     15        </span>
     16      </div>
    1117      <h3 tal:content="info/doc/LongTitle|here/title_or_id" />
    1218      <br />
     
    2026            tal:define="certs python: info['certificates'];"
    2127            >
    22         <span tal:condition="python: 0" tal:content="structure rows" />
    2328        <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content">     
    2429          <tr class="even ajaxtd">
  • WAeUP_SRP/base/skins/waeup_academics/faculty_view.pt

    r3473 r3474  
    44  <metal:body use-macro="here/main_template/macros/master">
    55    <metal:block fill-slot="header">
    6       <a href=""
     6      <a tal:condition="nothing" href=""
    77         tal:attributes="href string:${here/academicsParent}">
    88        <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
    99        Up one level
    1010      </a>
     11      <div class=""><span tal:repeat="crumb context/getBreadCrumbs"><a href="crumb"
     12                                                tal:attributes="href crumb/url"
     13                                                tal:content="crumb/title"></a>
     14          <span tal:condition="not: repeat/crumb/end">&gt;</span>
     15        </span>
     16      </div>
    1117      <h3 tal:content="info/doc/LongTitle|here/title_or_id" />
    1218      <br />
  • WAeUP_SRP/base/skins/waeup_academics/getLevelInfo.py

    r3473 r3474  
    1111"""
    1212return Info about the Level
    13 """
    1413try:
    1514    from Products.zdb import set_trace
     
    1716    def set_trace():
    1817        pass
     18"""
    1919request = context.REQUEST
    2020
     
    4444second = []
    4545combined = []
    46 set_trace()
    4746for course_id,course in context.objectItems():
    4847    row = {}
  • WAeUP_SRP/base/skins/waeup_academics/level_view.pt

    r2614 r3474  
    44  <metal:body use-macro="here/main_template/macros/master">
    55    <metal:block fill-slot="header">
    6       <a href=""
     6      <a tal:condition="nothing" href=""
    77         tal:attributes="href string:${here/academicsParent}">
    88        <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
    99        Up one level
    1010      </a>
     11      <div class=""><span tal:repeat="crumb context/getBreadCrumbs"><a href="crumb"
     12                                                tal:attributes="href crumb/url"
     13                                                tal:content="crumb/title"></a>
     14          <span tal:condition="not: repeat/crumb/end">&gt;</span>
     15        </span>
     16      </div>
    1117      <h3 tal:content="here/title_or_id" />
    12       <div tal:condition="python:0" tal:content="info/container_path"/>
    13       <div tal:condition="python:0" tal:content="info/dep_id"/>
    14       <div tal:condition="python:0" tal:content="info/cert_id"/>
    1518    </metal:block>
    1619    <metal:main fill-slot="main" tal:condition="python:1">
  • 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.