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

« back to all changes in this revision

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

  • Committer: David Coles
  • Date: 2009-08-11 09:32:21 UTC
  • mto: (1294.2.124 ui-the-third)
  • mto: This revision was merged to the branch mainline in revision 1353.
  • Revision ID: coles.david@gmail.com-20090811093221-jrhrnislj3458rk6
Automatically add dropdown arrow for all menus with submenus (Previously only worked for the main IVLE menu).
Setting the crumbmenu class attribute is a bit messy, but can't think of a nice way to do it without duplicating a large about of the template.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    <body>
41
41
      <div id="ivleheader">
42
42
        <ul id="ivle_breadcrumbs">
43
 
          <li class="breadcrumb">
 
43
          <li class="breadcrumb crumbmenu">
44
44
            <a href="/">
45
45
              <img src="${title_img}" alt="Informatics Virtual Learning Environment" />
46
46
            </a>
51
51
            </ul>
52
52
          </li>
53
53
          <py:for each="ancestor in ancestry" py:with="thiscrumb=crumb(ancestor)">
54
 
          <li py:if="thiscrumb">
 
54
          <li py:if="thiscrumb" py:attrs="{True:{'class':'crumbmenu'}, False: None}[hasattr(thiscrumb, 'menu')]">
55
55
            <py:choose test="getattr(thiscrumb, 'url', None)">
56
56
              <py:when test="None">
57
57
                <span>${thiscrumb.text}</span>