~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-05-13 03:15:26 UTC
  • mto: This revision was merged to the branch mainline in revision 1247.
  • Revision ID: grantw@unimelb.edu.au-20090513031526-l3knlkpgnldp6dgj
Attempting to view an SVN log when the repo is empty will not crash now.

svnlogservice now returns a 404 if the revision isn't found.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
  <py:match path="body[@status!='done']" once="true">
40
40
    <body>
41
41
      <div id="ivleheader">
42
 
        <ul id="ivle_breadcrumbs">
43
 
          <li class="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
 
          <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">
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>
85
 
        </ul>
 
42
        <h1>
 
43
          <a href="/">
 
44
            <img src="${title_img}" alt="Informatics Virtual Learning Environment" />
 
45
          </a>
 
46
        </h1>
86
47
        <div id="ivleheader_text">
87
48
          <py:choose>
88
49
            <p py:when="publicmode" class="userhello">Running in public mode.</p>
99
60
            <p py:otherwise="" class="userhello">Not logged in.</p>
100
61
          </py:choose>
101
62
        </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>
102
71
      </div>
103
72
      <div id="ivlebody">
104
73
        <div id="ivleview">