~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/base/ivle-headings.html

  • Committer: William Grant
  • Date: 2009-07-05 12:11:16 UTC
  • mto: (1294.4.2 ui-the-third)
  • mto: This revision was merged to the branch mainline in revision 1353.
  • Revision ID: grantw@unimelb.edu.au-20090705121116-8mkijbt1mmeufh6m
Allow views to specify extra breadcrumbs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
            </ul>
68
68
          </li>
69
69
          </py:for>
 
70
          <li py:for="thiscrumb in extra_breadcrumbs">
 
71
            <py:choose test="getattr(thiscrumb, 'url', None)">
 
72
              <py:when test="None">
 
73
                <span>${thiscrumb.text}</span>
 
74
              </py:when>
 
75
              <py:otherwise>
 
76
                <a href="${thiscrumb.url}">
 
77
                  ${thiscrumb.text}
 
78
                </a>
 
79
              </py:otherwise>
 
80
            </py:choose>
 
81
            <ul py:if="hasattr(thiscrumb, 'menu')">
 
82
              <li py:for="item in thiscrumb.menu"><a href="${thiscrumb.menu[item]}">${item}</a></li>
 
83
            </ul>
 
84
          </li>
70
85
        </ul>
71
86
        <div id="ivleheader_text">
72
87
          <py:choose>