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

« back to all changes in this revision

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

  • Committer: David Coles
  • Date: 2009-12-02 19:13:26 UTC
  • mto: This revision was merged to the branch mainline in revision 1333.
  • Revision ID: coles.david@gmail.com-20091202191326-qwm5jdbeuqd10owz
Allow sending of cwd along with chat in case console needs to be reset

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
        svn_base = "${svn_base}";
 
17
        username = "${login}";
 
18
        <py:if test="defined('tab')">this_app = "${tab}";</py:if>
 
19
      </script>
 
20
 
 
21
      <link py:if="favicon" rel="shortcut icon" href="${favicon}" />
 
22
 
 
23
      <py:for each="style in styles">
 
24
        <link rel="stylesheet" type="text/css" href="${style}" />
 
25
      </py:for>
 
26
 
 
27
      <py:for each="script in scripts">
 
28
        <script type="text/javascript" src="${script}"></script>
 
29
      </py:for>
 
30
 
 
31
      <!-- Plugin JavaScript to be run on page load -->
 
32
      <script type="text/javascript">
 
33
        <py:for each="init_script in scripts_init">
 
34
          $(document).ready(${init_script});
 
35
        </py:for>
 
36
      </script>
 
37
      ${select('*[local-name()!="title"]')}
 
38
    </head>
 
39
  </py:match>    
 
40
  <py:match path="body[@status!='done']" once="true">
 
41
    <body>
 
42
      <div id="ivleheader">
 
43
        <h1>
 
44
          <a href="/">
 
45
            <img src="${title_img}" alt="Informatics Virtual Learning Environment" />
 
46
          </a>
 
47
        </h1>
 
48
        <div id="ivleheader_text">
 
49
          <py:choose>
 
50
            <p py:when="publicmode" class="userhello">Running in public mode.</p>
 
51
            <p py:when="logged_in" class="userhello">
 
52
              <span id="usernick">${nick}</span>
 
53
              (<span class="username">${login}</span>) |
 
54
              <a href="/~${login}/+edit">Settings</a> |
 
55
              <py:choose>
 
56
                <a py:when="defined('help_path')" href="/+help/${help_path}">Help</a>
 
57
                <a py:otherwise="" href="/+help/">Help</a>
 
58
              |</py:choose>
 
59
              <a href="/+logout">Log out</a>
 
60
            </p>
 
61
            <p py:otherwise="" class="userhello">Not logged in.</p>
 
62
          </py:choose>
 
63
        </div>
 
64
        <div py:if="logged_in" id="ivleheader_tabs">
 
65
          <ul id="apptabs">
 
66
            <py:for each="app in apps_in_tabs">
 
67
              <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>
 
68
              <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>
 
69
            </py:for>
 
70
          </ul>
 
71
        </div>
 
72
      </div>
 
73
      <div id="ivlebody">
 
74
        <div id="ivleview">
 
75
          ${select('*')}
 
76
        </div>
 
77
        <div id="ivleoverlays">
 
78
          <py:for each="overlay in overlays">
 
79
            ${overlay}
 
80
          </py:for>
 
81
        </div>     
 
82
      </div>
 
83
    </body>
 
84
  </py:match>
 
85
  ${app_template}
 
86
</html>