root / templates / base.html @ 548848ba
History | View | Annotate | Download (3.7 kB)
1 |
<!DOCTYPE HTML>
|
---|---|
2 |
<html>
|
3 |
<head>
|
4 |
{% load i18n %} |
5 |
<title>GRNET's FoD :: {% block title %}{% endblock %} </title> |
6 |
<META HTTP-EQUIV="Pragma" CONTENT="no-cache"> |
7 |
<META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT"> |
8 |
|
9 |
<script src="/fodstatic/js/jquery.min.js" type="text/javascript"></script> |
10 |
<script src="/fodstatic/js/jquery_csrf_protect.js" type="text/javascript"></script> |
11 |
<link rel="stylesheet" type="text/css" href="/fodstatic/css/bootstrap.css"> |
12 |
<link rel="stylesheet" type="text/css" href="/fodstatic/css/base.css"> |
13 |
<link rel="stylesheet" type="text/css" href="/fodstatic/css/smoothness/jquery-ui-1.8.13.custom.css"> |
14 |
|
15 |
<script type="text/javascript" src="/fodstatic/js/jquery-ui-1.8.23.custom.min.js"></script> |
16 |
<script type="text/javascript" src="/fodstatic/js/jquery.cookie.js"></script> |
17 |
<script type="text/javascript" src="/fodstatic/js/bootstrap.js"></script> |
18 |
<script type="text/javascript"> |
19 |
|
20 |
function setlang(lang){
|
21 |
$("#langsel").val(lang);
|
22 |
$("#langform").submit();
|
23 |
}
|
24 |
|
25 |
</script>
|
26 |
{% block extrahead %}{% endblock %} |
27 |
</head>
|
28 |
|
29 |
|
30 |
|
31 |
<body>
|
32 |
<div id="main"> |
33 |
<div id="header"> |
34 |
<a class="grnetlogo" href="{% url group-routes %}"> |
35 |
<img class="logoimg" src="/fodstatic/logo.png"> |
36 |
</a>
|
37 |
<div id="title"> |
38 |
<a href="{% url group-routes %}">Firewall on Demand</a> |
39 |
</div>
|
40 |
<div class="loginform"> |
41 |
<div id="formcontent"> |
42 |
{% block menublock %} |
43 |
{% if user.is_authenticated %} |
44 |
<span class="topmenuuser">{% trans "Welcome" %} <strong>{{user}}</strong></span> |
45 |
{% endif %} |
46 |
|
47 |
<span {% if %}class="topmenuaction"{% else %}class="topmenuuser"{% endif %} > |
48 |
<form action="{% url django.views.i18n.set_language %}" method="post" style="display:inline;" id="langform"> |
49 |
{% csrf_token %} |
50 |
<input name="next" type="hidden" value="{{ next }}" /> |
51 |
<input id="langsel" name="language" type="hidden" value="" /> |
52 |
{% 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 %} |
53 |
{% endfor %} |
54 |
</form>
|
55 |
</span>
|
56 |
|
57 |
{% if user.is_authenticated %} |
58 |
<span class="topmenuaction"><a href="{% url user-profile %}">{% trans "My profile" %}</a></span> |
59 |
{% if user.is_superuser %} |
60 |
<span class="topmenuaction"><a href="{% url admin:index %}">{% trans "Admin" %}</a></span> |
61 |
{% endif %} |
62 |
<span class="topmenuaction"><a href="{% url logout %}">{% trans "Logout" %}</a></span> |
63 |
{% else %} |
64 |
{% if error %} |
65 |
<span class="topmenuaction relogin" title="{% trans 'After clicking Retry Login, it is strongly suggested to close your browser and visit the page again' %}"><a href="{% url logout %}">{% trans "Retry Login" %}</a></span> |
66 |
{% else %} |
67 |
<span class="topmenuaction"><a href="{% url login %}">{% trans "Shibboleth Login" %}</a></span> |
68 |
{% endif %} |
69 |
{% endif %} |
70 |
{% endblock %} |
71 |
</div>
|
72 |
|
73 |
</div>
|
74 |
</div>
|
75 |
<div id="content" class="container"> |
76 |
{% block brcrmb_container %} |
77 |
<ul class="breadcrumb">{% if user.is_authenticated %}<li><a href="{% url group-routes %}">{% trans "My rules" %}</a></li>{% endif %} |
78 |
{% block breadcrumbs %}{% endblock %} |
79 |
</ul>
|
80 |
{% if messages %} |
81 |
<div id="messages"> |
82 |
{% for message in messages %} |
83 |
<span{% if %} class="{{ message.tags }}"{% endif %}>{{ message }}</span><br /> |
84 |
{% endfor %} |
85 |
</div>
|
86 |
{% endif %} |
87 |
{% endblock %} |
88 |
{% block content %} |
89 |
{% endblock %} |
90 |
|
91 |
</div>
|
92 |
{% block footerblock %} |
93 |
{% include "footer.html" %} |
94 |
{% endblock %} |
95 |
</div>
|
96 |
</body>
|
97 |
</html>
|