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

« back to all changes in this revision

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

  • Committer: Nick Chadwick
  • Date: 2009-03-03 01:48:48 UTC
  • mto: (1099.1.227 exercise-ui)
  • mto: This revision was merged to the branch mainline in revision 1162.
  • Revision ID: chadnickbok@gmail.com-20090303014848-dyurvmtmbneohd7f
Modified the setup script to include '.txt' files.

This allows the automatic inclusion of definitions.txt from the rst
code, as it is needed by all worksheets.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
      <script py:if="not publicmode and write_javascript_settings" type="text/javascript">
14
14
        root_dir = "${root_dir}";
15
15
        public_host = "${public_host}";
16
 
        svn_base = "${svn_base}";
17
16
        username = "${login}";
18
17
      </script>
19
18
 
30
29
      <!-- Plugin JavaScript to be run on page load -->
31
30
      <script type="text/javascript">
32
31
        <py:for each="init_script in scripts_init">
33
 
          $(document).ready(${init_script});
 
32
          window.addEventListener("load", ${init_script}, false);
34
33
        </py:for>
35
34
      </script>
36
35
      ${select('*[local-name()!="title"]')}
39
38
  <py:match path="body[@status!='done']" once="true">
40
39
    <body>
41
40
      <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
 
          </li>
48
 
          <py:for each="ancestor in ancestry">
49
 
          <li py:if="breadcrumb_text(ancestor)">
50
 
            <a href="${url(ancestor)}">
51
 
              ${breadcrumb_text(ancestor)}
52
 
            </a>
53
 
          </li>
54
 
          </py:for>
55
 
        </ul>
 
41
        <h1>
 
42
          <a href="/">
 
43
            <img src="${title_img}" alt="Informatics Virtual Learning Environment" />
 
44
          </a>
 
45
        </h1>
56
46
        <div id="ivleheader_text">
57
47
          <py:choose>
58
48
            <p py:when="publicmode" class="userhello">Running in public mode.</p>
69
59
            <p py:otherwise="" class="userhello">Not logged in.</p>
70
60
          </py:choose>
71
61
        </div>
 
62
        <div py:if="logged_in" id="ivleheader_tabs">
 
63
          <ul id="apptabs">
 
64
            <py:for each="app in apps_in_tabs">
 
65
              <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>
 
66
              <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>
 
67
            </py:for>
 
68
          </ul>
 
69
        </div>
72
70
      </div>
73
71
      <div id="ivlebody">
74
72
        <div id="ivleview">