20
20
<link py:if="favicon" rel="shortcut icon" href="${favicon}" />
22
22
<py:for each="style in styles">
23
<link rel="stylesheet" type="text/css" href="${style}" />
23
<link rel="stylesheet" type="text/css" href="${style}" />
26
26
<py:for each="script in scripts">
27
<script type="text/javascript" src="${script}"></script>
27
<script type="text/javascript" src="${script}"></script>
30
30
<!-- Plugin JavaScript to be run on page load -->
41
41
<div id="ivleheader">
42
42
<ul id="ivle_breadcrumbs">
43
<li class="breadcrumb">
43
<li py:attrs="{'class': 'breadcrumb crumbmenu' if logged_in else 'breadcrumb'}">
45
45
<img src="${title_img}" alt="Informatics Virtual Learning Environment" />
48
<py:for each="ancestor in ancestry">
49
<li py:if="breadcrumb_text(ancestor)">
50
<a href="${url(ancestor)}">
51
${breadcrumb_text(ancestor)}
47
<ul py:if="logged_in">
48
<li py:for="app in apps_in_tabs">
49
<a py:attrs="{'style': 'background: url(%s) no-repeat; padding-left: 30px' % app['icon_url']} if app['has_icon'] else {}" href="${app['path']}" title="${app['desc']}">${app['name']}</a>
53
<li py:for="thiscrumb in breadcrumbs"
55
py:attrs="{True:{'class':'crumbmenu'}, False: None}[hasattr(thiscrumb, 'menu')]">
56
<py:choose test="getattr(thiscrumb, 'url', None)">
58
<span>${thiscrumb.text}</span>
61
<a href="${thiscrumb.url}">
66
<ul py:if="hasattr(thiscrumb, 'menu')">
67
<li py:for="item in thiscrumb.menu"><a href="${thiscrumb.menu[item]}">${item}</a></li>
56
71
<div id="ivleheader_text">
58
<p py:when="publicmode" class="userhello">Running in public mode.</p>
73
<p py:when="publicmode" class="userhello">Public access mode</p>
59
74
<p py:when="logged_in" class="userhello">
60
75
<span id="usernick">${nick}</span>
61
76
(<span class="username">${login}</span>) |
62
<a href="/~${login}/+settings">Settings</a> |
77
<a href="/~${login}">Settings</a> |
64
79
<a py:when="defined('help_path')" href="/+help/${help_path}">Help</a>
65
80
<a py:otherwise="" href="/+help/">Help</a>