~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
1099.1.206 by William Grant
Only display tabs and overlays when we are logged in, and JavaScript settings
13
      <script py:if="not publicmode and 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
1092.1.24 by William Grant
Convince the main XHTML template to use versioned styles/scripts, and move the
21
      <py:for each="style in styles">
1099.1.9 by chadnickbok at gmail
Created a new XHTMLView, which uses a Genshi template for rendering
22
        <link rel="stylesheet" type="text/css" href="${style}" />
23
      </py:for>
1099.1.14 by William Grant
ivle.webapp.base.views#XHTMLView: Include req.write_javascript_settings in
24
1099.1.9 by chadnickbok at gmail
Created a new XHTMLView, which uses a Genshi template for rendering
25
      <py:for each="script in scripts">
26
        <script type="text/javascript" src="${script}"></script>
27
      </py:for>
1099.1.14 by William Grant
ivle.webapp.base.views#XHTMLView: Include req.write_javascript_settings in
28
29
      <!-- 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
30
      <script type="text/javascript">
31
        <py:for each="init_script in scripts_init">
1166 by William Grant
Replace all non-external addEventListeners with equivalent jQuery calls.
32
          $(document).ready(${init_script});
1099.1.9 by chadnickbok at gmail
Created a new XHTMLView, which uses a Genshi template for rendering
33
        </py:for>
34
      </script>
35
      ${select('*[local-name()!="title"]')}
36
    </head>
37
  </py:match>    
1099.1.15 by Nick Chadwick
Fixed a small backwards-compatibility issue in the main genshi template.
38
  <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
39
    <body>
1100.1.9 by Matt Giuca
The IVLE logo is now an <img> element, rather than a CSS background.
40
      <div id="ivleheader">
1100.1.34 by Matt Giuca
ivle-headings.html: The IVLE logo is now clickable (takes you to /).
41
        <h1>
42
          <a href="/">
43
            <img src="${title_img}" alt="Informatics Virtual Learning Environment" />
44
          </a>
45
        </h1>
1100.1.31 by Matt Giuca
Ivle header: Put ivleheader_text inside ivleheader, simplifying the CSS a lot.
46
        <div id="ivleheader_text">
47
          <py:choose>
48
            <p py:when="publicmode" class="userhello">Running in public mode.</p>
49
            <p py:when="logged_in" class="userhello">
50
              <span id="usernick">${nick}</span>
51
              (<span class="username">${login}</span>) |
52
              <a href="/~${login}/+settings">Settings</a> |
53
              <py:choose>
54
                <a py:when="defined('help_path')" href="/+help/${help_path}">Help</a>
55
                <a py:otherwise="" href="/+help/">Help</a>
56
              |</py:choose>
57
              <a href="/+logout">Log out</a>
58
            </p>
59
            <p py:otherwise="" class="userhello">Not logged in.</p>
60
          </py:choose>
61
        </div>
1100.1.30 by Matt Giuca
Ivle heading: Reworked CSS so tabs are no longer a separate layer on top of
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>
1100.1.9 by Matt Giuca
The IVLE logo is now an <img> element, rather than a CSS background.
70
      </div>
1099.1.9 by chadnickbok at gmail
Created a new XHTMLView, which uses a Genshi template for rendering
71
      <div id="ivlebody">
1099.1.111 by William Grant
Throw the view content into a new ivleview div (inside ivlebody) of the main
72
        <div id="ivleview">
73
          ${select('*')}
74
        </div>
75
        <div id="ivleoverlays">
76
          <py:for each="overlay in overlays">
77
            ${overlay}
78
          </py:for>
79
        </div>     
1099.1.9 by chadnickbok at gmail
Created a new XHTMLView, which uses a Genshi template for rendering
80
      </div>
81
    </body>
82
  </py:match>
83
  ${app_template}
84
</html>