root / templates / base.html @ d0777394
History | View | Annotate | Download (3.7 kB)
1 |
{% load i18n %} |
---|---|
2 |
<html>
|
3 |
<head>
|
4 |
<title>GRNET's FoD :: {% block title %}{% endblock %} </title> |
5 |
<META HTTP-EQUIV="Pragma" CONTENT="no-cache"> |
6 |
<META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT"> |
7 |
|
8 |
<script src="/static/js/jquery.min.js" type="text/javascript"></script> |
9 |
<script src="/static/js/jquery_csrf_protect.js" type="text/javascript"></script> |
10 |
<link rel="stylesheet" type="text/css" href="/static/css/base.css"> |
11 |
<link rel="stylesheet" type="text/css" href="/static/css/smoothness/jquery-ui-1.8.13.custom.css"> |
12 |
<script type="text/javascript" src="/static/js/jquery-ui-1.8.12.custom.min.js"></script> |
13 |
<script type="text/javascript" src="/static/js/jquery.tooltip.min.js"></script> |
14 |
<script type="text/javascript" src="/static/js/jquery.cookie.js"></script> |
15 |
<script type="text/javascript"> |
16 |
|
17 |
function setlang(lang){
|
18 |
$("#langsel").val(lang);
|
19 |
$("#langform").submit();
|
20 |
}
|
21 |
|
22 |
</script>
|
23 |
{% block extrahead %}{% endblock %} |
24 |
</head>
|
25 |
|
26 |
|
27 |
|
28 |
<body>
|
29 |
<div id="main"> |
30 |
<div id="header"> |
31 |
<a class="grnetlogo" href="{% url group-routes %}"> |
32 |
<img class="logoimg" src="/static/grnet_logo.png"> |
33 |
</a>
|
34 |
<div id="title"> |
35 |
<a href="{% url group-routes %}">Firewall on Demand</a> |
36 |
</div>
|
37 |
<div class="loginform"> |
38 |
<div id="formcontent"> |
39 |
{% if user.is_authenticated %} |
40 |
<span class="topmenuuser">{% trans "Welcome" %} <strong>{{user}}</strong></span> |
41 |
{% endif %} |
42 |
{% comment %} |
43 |
<span {% if %}class="topmenuaction"{% else %}class="topmenuuser"{% endif %} > |
44 |
<form action="{% url django.views.i18n.set_language %}" method="post" style="display:inline;" id="langform"> |
45 |
{% csrf_token %} |
46 |
<input name="next" type="hidden" value="{{ next }}" /> |
47 |
<input id="langsel" name="language" type="hidden" value="" /> |
48 |
{% for lang in LANGUAGES %}<a class="select_lang" href="#" onclick="setlang('{{ lang.0 }}'); return false;" title="{{lang.1}}">{% ifnotequal LANGUAGE_CODE lang.0 %}<font style="font-weight:normal;">{% endifnotequal %}{% trans lang.1 %}{% ifnotequal LANGUAGE_CODE lang.0 %}</font>{% endifnotequal %}</a>{% if not forloop.last %} -{% endif %} |
49 |
{% endfor %} |
50 |
</form>
|
51 |
</span>
|
52 |
{% endcomment %} |
53 |
{% if user.is_authenticated %} |
54 |
<span class="topmenuaction"><a href="{% url user-profile %}">{% trans "My profile" %}</a></span> |
55 |
{% if user.is_superuser %} |
56 |
<span class="topmenuaction"><a href="{% url admin:index %}">{% trans "Admin" %}</a></span> |
57 |
{% endif %} |
58 |
<span class="topmenuaction"><a href="{% url logout %}">{% trans "Logout" %}</a></span> |
59 |
{% else %} |
60 |
<span class="topmenuaction"><a href="{% url login %}">{% trans "Shibboleth Login" %}</a></span> |
61 |
{% endif %} |
62 |
</div>
|
63 |
|
64 |
</div>
|
65 |
</div>
|
66 |
<div id="content"> |
67 |
{% block brcrmb_container %} |
68 |
<div class="info_content_title">{% if user.is_authenticated %}<a href="{% url group-routes %}">{% trans "My rules" %}</a>{% endif %} |
69 |
{% block breadcrumbs %}{% endblock %} |
70 |
</div>
|
71 |
{% if messages %} |
72 |
<div id="messages"> |
73 |
{% for message in messages %} |
74 |
<span{% if %} class="{{ message.tags }}"{% endif %}>{{ message }}</span><br /> |
75 |
{% endfor %} |
76 |
</div>
|
77 |
{% endif %} |
78 |
{% endblock %} |
79 |
{% block content %} |
80 |
{% endblock %} |
81 |
|
82 |
</div>
|
83 |
|
84 |
<div id="footer"> |
85 |
{% if user.is_authenticated %} |
86 |
{% trans "If you have any questions or need help, contact GRNET Helpdesk at <a href='mailto:helpdesk@grnet.gr'>helpdesk@grnet.gr</a> or 800-11-47638." %}<br /> |
87 |
{% endif %} |
88 |
<a href="http://www.grnet.gr">{% trans "GRNET" %} NOC</a> | <a href="/fod/about/info/">{% trans "Info" %}</a> | <a href="/fod/about/terms-of-service/">{% trans "Service Terms" %}</a> |
89 |
</div>
|
90 |
</div>
|
91 |
</body>
|
92 |
</html>
|