~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-02-23 23:47:02 UTC
  • mfrom: (1099.1.211 new-dispatch)
  • Revision ID: grantw@unimelb.edu.au-20090223234702-db4b1llly46ignwo
Merge from lp:~ivle-dev/ivle/new-dispatch.

Pretty much everything changes. Reread the setup docs. Backup your databases.
Every file is now in a different installed location, the configuration system
is rewritten, the dispatch system is rewritten, URLs are different, the
database is different, worksheets and exercises are no longer on the
filesystem, we use a templating engine, jail service protocols are rewritten,
we don't repeat ourselves, we have authorization rewritten, phpBB is gone,
and probably lots of other things that I cannot remember.

This is certainly the biggest commit I have ever made, and hopefully
the largest I ever will.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html xmlns="http://www.w3.org/1999/xhtml"       
 
2
      xmlns:py="http://genshi.edgewall.org/"
 
3
      xmlns:xi="http://www.w3.org/2001/XInclude"
 
4
      py:strip="">
 
5
  <py:match path="head[@status!='done']" once="true">
 
6
    <head>
 
7
      <title py:with="title = list(select('title/text()'))">
 
8
        <py:if test="title">${title} - </py:if>IVLE
 
9
      </title>
 
10
 
 
11
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 
12
 
 
13
      <script py:if="not publicmode and write_javascript_settings" type="text/javascript">
 
14
        root_dir = "${root_dir}";
 
15
        public_host = "${public_host}";
 
16
        username = "${login}";
 
17
      </script>
 
18
 
 
19
      <link py:if="favicon" rel="shortcut icon" href="${favicon}" />
 
20
 
 
21
      <py:for each="style in styles">
 
22
        <link rel="stylesheet" type="text/css" href="${style}" />
 
23
      </py:for>
 
24
 
 
25
      <py:for each="script in scripts">
 
26
        <script type="text/javascript" src="${script}"></script>
 
27
      </py:for>
 
28
 
 
29
      <!-- Plugin JavaScript to be run on page load -->
 
30
      <script type="text/javascript">
 
31
        <py:for each="init_script in scripts_init">
 
32
          window.addEventListener("load", ${init_script}, false);
 
33
        </py:for>
 
34
      </script>
 
35
      ${select('*[local-name()!="title"]')}
 
36
    </head>
 
37
  </py:match>    
 
38
  <py:match path="body[@status!='done']" once="true">
 
39
    <body>
 
40
      <div id="ivleheader"></div>
 
41
      <div id="ivleheader_text">
 
42
        <h1>IVLE</h1>
 
43
        <h2>Informatics Virtual Learning Environment</h2>
 
44
        <py:choose>
 
45
          <p py:when="publicmode" class="userhello">Running in public mode.</p>
 
46
          <p py:when="logged_in" class="userhello">
 
47
            <span id="usernick">${nick}</span>
 
48
            (<span class="username">${login}</span>) |
 
49
            <a href="/~${login}/+settings">Settings</a> |
 
50
            <py:choose>
 
51
              <a py:when="defined('help_path')" href="/+help/${help_path}">Help</a>
 
52
              <a py:otherwise="" href="/+help/">Help</a>
 
53
            |</py:choose>
 
54
            <a href="/+logout">Sign out</a>
 
55
          </p>
 
56
          <p py:otherwise="" class="userhello">Not logged in.</p>
 
57
        </py:choose>
 
58
      </div>
 
59
      <div py:if="logged_in" id="ivleheader_tabs">
 
60
        <ul id="apptabs">
 
61
          <py:for each="app in apps_in_tabs">
 
62
            <li py:if="app['this_app']" class="thisapp"><py:if test="app['has_icon']"><img src="${app['icon_url']}" alt="" /> </py:if><a href="${app['path']}" title="${app['desc']}">${app['name']}</a></li>
 
63
            <li py:if="not app['this_app']"><py:if test="app['has_icon']"><img src="${app['icon_url']}" alt="" /> </py:if><a href="${app['path']}" title="${app['desc']}">${app['name']}</a></li>
 
64
          </py:for>
 
65
        </ul>
 
66
      </div>
 
67
      <div id="ivlebody">
 
68
        <div id="ivleview">
 
69
          ${select('*')}
 
70
        </div>
 
71
        <div id="ivleoverlays">
 
72
          <py:for each="overlay in overlays">
 
73
            ${overlay}
 
74
          </py:for>
 
75
        </div>     
 
76
      </div>
 
77
    </body>
 
78
  </py:match>
 
79
  ${app_template}
 
80
</html>