~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:23:11 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-20090705122311-wfyih6snxs4c144p
Recenter the breadcrumb text.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
      <link py:if="favicon" rel="shortcut icon" href="${favicon}" />
21
21
 
22
22
      <py:for each="style in styles">
23
 
      <link rel="stylesheet" type="text/css" href="${style}" />
 
23
        <link rel="stylesheet" type="text/css" href="${style}" />
24
24
      </py:for>
25
25
 
26
26
      <py:for each="script in scripts">
27
 
      <script type="text/javascript" src="${script}"></script>
 
27
        <script type="text/javascript" src="${script}"></script>
28
28
      </py:for>
29
29
 
30
30
      <!-- Plugin JavaScript to be run on page load -->
40
40
    <body>
41
41
      <div id="ivleheader">
42
42
        <ul id="ivle_breadcrumbs">
43
 
          <li py:attrs="{'class': 'breadcrumb crumbmenu' if logged_in else 'breadcrumb'}">
 
43
          <li class="breadcrumb">
44
44
            <a href="/">
45
45
              <img src="${title_img}" alt="Informatics Virtual Learning Environment" />
46
46
            </a>
47
 
            <ul py:if="logged_in">
 
47
            <ul>
48
48
              <li py:for="app in apps_in_tabs">
49
49
                <a py:attrs="{'style': 'background: url(%s) no-repeat; padding-left: 30px' % app['icon_url']} if app['has_icon'] else {}" href="${app['path']}" title="${app['desc']}">${app['name']}</a>
50
50
              </li>
51
51
            </ul>
52
52
          </li>
53
 
          <li py:for="thiscrumb in breadcrumbs"
54
 
              py:if="thiscrumb"
55
 
              py:attrs="{True:{'class':'crumbmenu'}, False: None}[hasattr(thiscrumb, 'menu')]">
 
53
          <py:for each="ancestor in ancestry" py:with="thiscrumb=crumb(ancestor)">
 
54
          <li py:if="thiscrumb">
 
55
            <py:choose test="getattr(thiscrumb, 'url', None)">
 
56
              <py:when test="None">
 
57
                <span>${thiscrumb.text}</span>
 
58
              </py:when>
 
59
              <py:otherwise>
 
60
                <a href="${thiscrumb.url}">
 
61
                  ${thiscrumb.text}
 
62
                </a>
 
63
              </py:otherwise>
 
64
            </py:choose>
 
65
            <ul py:if="hasattr(thiscrumb, 'menu')">
 
66
              <li py:for="item in thiscrumb.menu"><a href="${thiscrumb.menu[item]}">${item}</a></li>
 
67
            </ul>
 
68
          </li>
 
69
          </py:for>
 
70
          <li py:for="thiscrumb in extra_breadcrumbs">
56
71
            <py:choose test="getattr(thiscrumb, 'url', None)">
57
72
              <py:when test="None">
58
73
                <span>${thiscrumb.text}</span>
70
85
        </ul>
71
86
        <div id="ivleheader_text">
72
87
          <py:choose>
73
 
            <p py:when="publicmode" class="userhello">Public access mode</p>
 
88
            <p py:when="publicmode" class="userhello">Running in public mode.</p>
74
89
            <p py:when="logged_in" class="userhello">
75
90
              <span id="usernick">${nick}</span>
76
91
              (<span class="username">${login}</span>) |
77
 
              <a href="/~${login}">Settings</a> |
 
92
              <a href="/~${login}/+settings">Settings</a> |
78
93
              <py:choose>
79
94
                <a py:when="defined('help_path')" href="/+help/${help_path}">Help</a>
80
95
                <a py:otherwise="" href="/+help/">Help</a>