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