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

« back to all changes in this revision

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

  • Committer: Matt Giuca
  • Date: 2010-07-22 02:12:36 UTC
  • mfrom: (1812.1.13 late-submit)
  • Revision ID: matt.giuca@gmail.com-20100722021236-k8kt4cqdtywzpk24
Merge from trunk late-submit.
Students may now submit projects after the deadline, but they are warned that the submission is late.
Lecturers are now given data on which submissions were made late, and how many days.
(LP: #598346)

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 -->
39
39
  <py:match path="body[@status!='done']" once="true">
40
40
    <body>
41
41
      <div id="ivleheader">
42
 
        <h1>
43
 
          <a href="/">
44
 
            <img src="${title_img}" alt="Informatics Virtual Learning Environment" />
45
 
          </a>
46
 
        </h1>
 
42
        <ul id="ivle_breadcrumbs">
 
43
          <li py:attrs="{'class': 'breadcrumb crumbmenu' if logged_in else 'breadcrumb'}">
 
44
            <a href="/">
 
45
              <img src="${title_img}" alt="Informatics Virtual Learning Environment" />
 
46
            </a>
 
47
            <ul py:if="logged_in">
 
48
              <li py:for="app in apps_in_tabs">
 
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
              </li>
 
51
            </ul>
 
52
          </li>
 
53
          <li py:for="thiscrumb in breadcrumbs"
 
54
              py:if="thiscrumb"
 
55
              py:attrs="{True:{'class':'crumbmenu'}, False: None}[hasattr(thiscrumb, 'menu')]">
 
56
            <py:choose test="getattr(thiscrumb, 'url', None)">
 
57
              <py:when test="None">
 
58
                <span>${thiscrumb.text}</span>
 
59
              </py:when>
 
60
              <py:otherwise>
 
61
                <a href="${thiscrumb.url}">
 
62
                  ${thiscrumb.text}
 
63
                </a>
 
64
              </py:otherwise>
 
65
            </py:choose>
 
66
            <ul py:if="hasattr(thiscrumb, 'menu')">
 
67
              <li py:for="item in thiscrumb.menu"><a href="${thiscrumb.menu[item]}">${item}</a></li>
 
68
            </ul>
 
69
          </li>
 
70
        </ul>
47
71
        <div id="ivleheader_text">
48
72
          <py:choose>
49
 
            <p py:when="publicmode" class="userhello">Running in public mode.</p>
 
73
            <p py:when="publicmode" class="userhello">Public access mode</p>
50
74
            <p py:when="logged_in" class="userhello">
51
75
              <span id="usernick">${nick}</span>
52
76
              (<span class="username">${login}</span>) |
53
 
              <a href="/~${login}/+settings">Settings</a> |
 
77
              <a href="/~${login}">Settings</a> |
54
78
              <py:choose>
55
79
                <a py:when="defined('help_path')" href="/+help/${help_path}">Help</a>
56
80
                <a py:otherwise="" href="/+help/">Help</a>
60
84
            <p py:otherwise="" class="userhello">Not logged in.</p>
61
85
          </py:choose>
62
86
        </div>
63
 
        <div py:if="logged_in" id="ivleheader_tabs">
64
 
          <ul id="apptabs">
65
 
            <py:for each="app in apps_in_tabs">
66
 
              <li py:if="app['this_app']" class="thisapp"><a href="${app['path']}" title="${app['desc']}"><span><py:if test="app['has_icon']"><img src="${app['icon_url']}" alt="" /> </py:if>${app['name']}</span></a></li>
67
 
              <li py:if="not app['this_app']"><a href="${app['path']}" title="${app['desc']}"><span><py:if test="app['has_icon']"><img src="${app['icon_url']}" alt="" /> </py:if>${app['name']}</span></a></li>
68
 
            </py:for>
69
 
          </ul>
70
 
        </div>
71
87
      </div>
72
88
      <div id="ivlebody">
73
89
        <div id="ivleview">