11
11
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
13
<script py:if="write_javascript_settings" type="text/javascript">
13
<script py:if="not publicmode and write_javascript_settings" type="text/javascript">
14
14
root_dir = "${root_dir}";
15
15
public_host = "${public_host}";
16
svn_base = "${svn_base}";
16
17
username = "${login}";
29
30
<!-- Plugin JavaScript to be run on page load -->
30
31
<script type="text/javascript">
31
32
<py:for each="init_script in scripts_init">
32
window.addEventListener("load", ${init_script}, false);
33
$(document).ready(${init_script});
35
36
${select('*[local-name()!="title"]')}
38
39
<py:match path="body[@status!='done']" once="true">
40
<div id="ivleheader"></div>
41
<div id="ivleheader_text">
43
<h2>Informatics Virtual Learning Environment</h2>
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> |
51
<a py:when="defined('help_path')" href="/+help/${help_path}">Help</a>
52
<a py:otherwise="" href="/+help/">Help</a>
54
<a href="/+logout">Sign out</a>
56
<p py:otherwise="" class="userhello">Not logged in.</p>
59
<div id="ivleheader_tabs">
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>
44
<img src="${title_img}" alt="Informatics Virtual Learning Environment" />
47
<div id="ivleheader_text">
49
<p py:when="publicmode" class="userhello">Running in public mode.</p>
50
<p py:when="logged_in" class="userhello">
51
<span id="usernick">${nick}</span>
52
(<span class="username">${login}</span>) |
53
<a href="/~${login}/+settings">Settings</a> |
55
<a py:when="defined('help_path')" href="/+help/${help_path}">Help</a>
56
<a py:otherwise="" href="/+help/">Help</a>
58
<a href="/+logout">Log out</a>
60
<p py:otherwise="" class="userhello">Not logged in.</p>
63
<div py:if="logged_in" id="ivleheader_tabs">
65
<py:for each="app in apps_in_tabs">
66
<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>
67
<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
72
<div id="ivlebody">
68
73
<div id="ivleview">