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

1099.1.9 by chadnickbok at gmail
Created a new XHTMLView, which uses a Genshi template for rendering
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="">
1099.1.15 by Nick Chadwick
Fixed a small backwards-compatibility issue in the main genshi template.
5
  <py:match path="head[@status!='done']" once="true">
1099.1.73 by Nick Chadwick
Fixed a small issue in the template, removing some extraneous tags
6
    <head>
1099.1.9 by chadnickbok at gmail
Created a new XHTMLView, which uses a Genshi template for rendering
7
      <title py:with="title = list(select('title/text()'))">
1099.1.14 by William Grant
ivle.webapp.base.views#XHTMLView: Include req.write_javascript_settings in
8
        <py:if test="title">${title} - </py:if>IVLE
1099.1.9 by chadnickbok at gmail
Created a new XHTMLView, which uses a Genshi template for rendering
9
      </title>
1099.1.14 by William Grant
ivle.webapp.base.views#XHTMLView: Include req.write_javascript_settings in
10
1099.1.9 by chadnickbok at gmail
Created a new XHTMLView, which uses a Genshi template for rendering
11
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
1099.1.14 by William Grant
ivle.webapp.base.views#XHTMLView: Include req.write_javascript_settings in
12
13
      <script py:if="write_javascript_settings" type="text/javascript">
1099.1.9 by chadnickbok at gmail
Created a new XHTMLView, which uses a Genshi template for rendering
14
        root_dir = "${root_dir}";
15
        public_host = "${public_host}";
16
        username = "${login}";
17
      </script>
1099.1.14 by William Grant
ivle.webapp.base.views#XHTMLView: Include req.write_javascript_settings in
18
1099.1.9 by chadnickbok at gmail
Created a new XHTMLView, which uses a Genshi template for rendering
19
      <link py:if="favicon" rel="shortcut icon" href="${favicon}" />
1099.1.14 by William Grant
ivle.webapp.base.views#XHTMLView: Include req.write_javascript_settings in
20
1099.1.9 by chadnickbok at gmail
Created a new XHTMLView, which uses a Genshi template for rendering
21
      <link rel="stylesheet" type="text/css" href="/media/common/ivle.css" />
1099.1.14 by William Grant
ivle.webapp.base.views#XHTMLView: Include req.write_javascript_settings in
22
1099.1.9 by chadnickbok at gmail
Created a new XHTMLView, which uses a Genshi template for rendering
23
      <script type="text/javascript" src="/media/common/util.js"></script>
24
      <script type="text/javascript" src="/media/common/json2.js"></script>
25
      <script type="text/javascript" src="/media/common/md5.js"></script>
26
      <script type="text/javascript" src="/media/common/tos.js"></script>
1099.1.14 by William Grant
ivle.webapp.base.views#XHTMLView: Include req.write_javascript_settings in
27
28
      <!-- Plugin style sheets and JavaScript -->
1099.1.9 by chadnickbok at gmail
Created a new XHTMLView, which uses a Genshi template for rendering
29
      <py:for each="style in app_styles">
30
        <link rel="stylesheet" type="text/css" href="${style}" />
31
      </py:for>
1099.1.14 by William Grant
ivle.webapp.base.views#XHTMLView: Include req.write_javascript_settings in
32
1099.1.9 by chadnickbok at gmail
Created a new XHTMLView, which uses a Genshi template for rendering
33
      <py:for each="script in scripts">
34
        <script type="text/javascript" src="${script}"></script>
35
      </py:for>
1099.1.14 by William Grant
ivle.webapp.base.views#XHTMLView: Include req.write_javascript_settings in
36
37
      <!-- Plugin JavaScript to be run on page load -->
1099.1.9 by chadnickbok at gmail
Created a new XHTMLView, which uses a Genshi template for rendering
38
      <script type="text/javascript">
39
        <py:for each="init_script in scripts_init">
40
          window.addEventListener("load", ${init_script}, false);
41
        </py:for>
42
      </script>
43
      ${select('*[local-name()!="title"]')}
44
    </head>
45
  </py:match>    
1099.1.15 by Nick Chadwick
Fixed a small backwards-compatibility issue in the main genshi template.
46
  <py:match path="body[@status!='done']" once="true">
1099.1.73 by Nick Chadwick
Fixed a small issue in the template, removing some extraneous tags
47
    <body>
1099.1.9 by chadnickbok at gmail
Created a new XHTMLView, which uses a Genshi template for rendering
48
      <div id="ivleheader"></div>
49
      <div id="ivleheader_text">
50
        <h1>IVLE</h1>
51
        <h2>Informatics Virtual Learning Environment</h2>
52
        <py:choose>
53
          <p py:when="publicmode" class="userhello">Running in public mode.</p>
54
          <p py:when="logged_in" class="userhello">
55
            <span id="usernick">${nick}</span>
56
            (<span class="username">${login}</span>) |
1099.1.51 by William Grant
Move /users/:login/+settings to /~:login/+settings.
57
            <a href="/~${login}/+settings">Settings</a> |
1099.1.100 by Nick Chadwick
Created a new help system.
58
            <py:choose>
1099.1.101 by William Grant
Fix some issues with undefined variables in view template contexts. Genshi 0.5
59
              <a py:when="defined('help_path')" href="/+help/${help_path}">Help</a>
1099.1.100 by Nick Chadwick
Created a new help system.
60
              <a py:otherwise="" href="/+help/">Help</a>
61
            |</py:choose>
1099.1.120 by William Grant
Move the login machinery to the new framework.
62
            <a href="/+logout">Sign out</a>
1099.1.9 by chadnickbok at gmail
Created a new XHTMLView, which uses a Genshi template for rendering
63
          </p>
1099.1.40 by William Grant
ivle.webapp.base.ivle-headings.html: Apply class="userhello" to the
64
          <p py:otherwise="" class="userhello">Not logged in.</p>
1099.1.9 by chadnickbok at gmail
Created a new XHTMLView, which uses a Genshi template for rendering
65
        </py:choose>
66
      </div>
67
      <div id="ivleheader_tabs">
68
        <ul id="apptabs">
69
          <py:for each="app in apps_in_tabs">
70
            <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>
71
            <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>
72
          </py:for>
73
        </ul>
74
      </div>
75
      <div id="ivlebody">
1099.1.111 by William Grant
Throw the view content into a new ivleview div (inside ivlebody) of the main
76
        <div id="ivleview">
77
          ${select('*')}
78
        </div>
79
        <div id="ivleoverlays">
80
          <py:for each="overlay in overlays">
81
            ${overlay}
82
          </py:for>
83
        </div>     
1099.1.9 by chadnickbok at gmail
Created a new XHTMLView, which uses a Genshi template for rendering
84
      </div>
85
    </body>
86
  </py:match>
87
  ${app_template}
88
</html>