root / templates / base.html @ 33e8f0b8
History | View | Annotate | Download (4.1 kB)
1 | 064ecc91 | Leonidas Poulopoulos | {% load i18n %} |
---|---|---|---|
2 | 064ecc91 | Leonidas Poulopoulos | <html>
|
3 | 064ecc91 | Leonidas Poulopoulos | <head>
|
4 | 064ecc91 | Leonidas Poulopoulos | <title>GRNET's FoD :: {% block title %}{% endblock %} </title> |
5 | 9cad4715 | Leonidas Poulopoulos | <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> |
6 | c1509909 | Leonidas Poulopoulos | <META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT"> |
7 | c1509909 | Leonidas Poulopoulos | |
8 | 064ecc91 | Leonidas Poulopoulos | <script src="/static/js/jquery.min.js" type="text/javascript"></script> |
9 | 064ecc91 | Leonidas Poulopoulos | <link rel="stylesheet" type="text/css" href="/static/css/base.css"> |
10 | 064ecc91 | Leonidas Poulopoulos | <link rel="stylesheet" type="text/css" href="/static/css/smoothness/jquery-ui-1.8.13.custom.css"> |
11 | 064ecc91 | Leonidas Poulopoulos | <script type="text/javascript" src="/static/js/jquery-ui-1.8.12.custom.min.js"></script> |
12 | 049a5a10 | Leonidas Poulopoulos | {% if user.is_authenticated %} |
13 | 97e42c7d | Leonidas Poulopoulos | <script type="text/javascript" src="{% url load-js 'poller' %}"></script> |
14 | 049a5a10 | Leonidas Poulopoulos | {% endif %} |
15 | 064ecc91 | Leonidas Poulopoulos | <script type="text/javascript"> |
16 | 064ecc91 | Leonidas Poulopoulos | |
17 | 064ecc91 | Leonidas Poulopoulos | function setlang(lang){
|
18 | 064ecc91 | Leonidas Poulopoulos | $("#langsel").val(lang);
|
19 | 064ecc91 | Leonidas Poulopoulos | $("#langform").submit();
|
20 | 064ecc91 | Leonidas Poulopoulos | }
|
21 | 064ecc91 | Leonidas Poulopoulos | |
22 | 064ecc91 | Leonidas Poulopoulos | //function highlight(elemId){
|
23 | 064ecc91 | Leonidas Poulopoulos | // var elem = $(elemId);
|
24 | 064ecc91 | Leonidas Poulopoulos | // elem.css("background-color", "#ffffbb");
|
25 | 064ecc91 | Leonidas Poulopoulos | // setTimeout(function() { $(elemId).animate({ backgroundColor: "white" }, 2000)}, 1500);
|
26 | 064ecc91 | Leonidas Poulopoulos | //}
|
27 | 064ecc91 | Leonidas Poulopoulos | //
|
28 | 064ecc91 | Leonidas Poulopoulos | //
|
29 | 064ecc91 | Leonidas Poulopoulos | //$(document).ready( function(){
|
30 | 064ecc91 | Leonidas Poulopoulos | // if (document.location.hash) {
|
31 | 064ecc91 | Leonidas Poulopoulos | // highlight(document.location.hash);
|
32 | 064ecc91 | Leonidas Poulopoulos | // }
|
33 | 064ecc91 | Leonidas Poulopoulos | // $('a[href*=#]').click(function(){
|
34 | 064ecc91 | Leonidas Poulopoulos | // var elemId = '#' + $(this).attr('href').split('#')[1];
|
35 | 064ecc91 | Leonidas Poulopoulos | // highlight(elemId);
|
36 | 064ecc91 | Leonidas Poulopoulos | // });
|
37 | 064ecc91 | Leonidas Poulopoulos | //});
|
38 | 064ecc91 | Leonidas Poulopoulos | |
39 | 064ecc91 | Leonidas Poulopoulos | </script>
|
40 | 064ecc91 | Leonidas Poulopoulos | {% block extrahead %}{% endblock %} |
41 | 064ecc91 | Leonidas Poulopoulos | </head>
|
42 | 064ecc91 | Leonidas Poulopoulos | |
43 | 064ecc91 | Leonidas Poulopoulos | |
44 | 064ecc91 | Leonidas Poulopoulos | |
45 | 064ecc91 | Leonidas Poulopoulos | <body>
|
46 | 064ecc91 | Leonidas Poulopoulos | <div id="main"> |
47 | 064ecc91 | Leonidas Poulopoulos | <div id="header"> |
48 | 97e42c7d | Leonidas Poulopoulos | <a class="grnetlogo" href="{% url group-routes %}"> |
49 | 064ecc91 | Leonidas Poulopoulos | <img class="logoimg" src="/static/grnet_logo.png"> |
50 | 064ecc91 | Leonidas Poulopoulos | </a>
|
51 | 064ecc91 | Leonidas Poulopoulos | <div id="title"> |
52 | 33e8f0b8 | Leonidas Poulopoulos | <a href="{% url group-routes %}">Firewall on Demand</a> |
53 | 064ecc91 | Leonidas Poulopoulos | </div>
|
54 | 064ecc91 | Leonidas Poulopoulos | <div class="loginform"> |
55 | 064ecc91 | Leonidas Poulopoulos | <div id="formcontent"> |
56 | 064ecc91 | Leonidas Poulopoulos | {% if user.is_authenticated %} |
57 | 064ecc91 | Leonidas Poulopoulos | <span class="topmenuuser">{% trans "Welcome" %} <strong>{{user}}</strong></span> |
58 | 064ecc91 | Leonidas Poulopoulos | {% endif %} |
59 | 97e42c7d | Leonidas Poulopoulos | {% comment %} |
60 | 064ecc91 | Leonidas Poulopoulos | <span {% if %}class="topmenuaction"{% else %}class="topmenuuser"{% endif %} > |
61 | 064ecc91 | Leonidas Poulopoulos | <form action="{% url django.views.i18n.set_language %}" method="post" style="display:inline;" id="langform"> |
62 | 064ecc91 | Leonidas Poulopoulos | {% csrf_token %} |
63 | 064ecc91 | Leonidas Poulopoulos | <input name="next" type="hidden" value="{{ next }}" /> |
64 | 064ecc91 | Leonidas Poulopoulos | <input id="langsel" name="language" type="hidden" value="" /> |
65 | 064ecc91 | Leonidas Poulopoulos | {% 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 %} |
66 | 064ecc91 | Leonidas Poulopoulos | {% endfor %} |
67 | 064ecc91 | Leonidas Poulopoulos | </form>
|
68 | 064ecc91 | Leonidas Poulopoulos | </span>
|
69 | 97e42c7d | Leonidas Poulopoulos | {% endcomment %} |
70 | 064ecc91 | Leonidas Poulopoulos | {% if user.is_authenticated %} |
71 | 97e42c7d | Leonidas Poulopoulos | <span class="topmenuaction"><a href="{% url user-profile %}">{% trans "My profile" %}</a></span> |
72 | 97e42c7d | Leonidas Poulopoulos | {% if user.is_superuser %} |
73 | 064ecc91 | Leonidas Poulopoulos | <span class="topmenuaction"><a href="{% url admin:index %}">{% trans "Admin" %}</a></span> |
74 | 97e42c7d | Leonidas Poulopoulos | {% endif %} |
75 | 064ecc91 | Leonidas Poulopoulos | <span class="topmenuaction"><a href="{% url logout %}">{% trans "Logout" %}</a></span> |
76 | 064ecc91 | Leonidas Poulopoulos | {% else %} |
77 | 049a5a10 | Leonidas Poulopoulos | <span class="topmenuaction"><a href="{% url login %}">{% trans "Shibboleth Login" %}</a></span> |
78 | 064ecc91 | Leonidas Poulopoulos | {% endif %} |
79 | 064ecc91 | Leonidas Poulopoulos | </div>
|
80 | 064ecc91 | Leonidas Poulopoulos | |
81 | 064ecc91 | Leonidas Poulopoulos | </div>
|
82 | 064ecc91 | Leonidas Poulopoulos | </div>
|
83 | 064ecc91 | Leonidas Poulopoulos | <div id="content"> |
84 | 064ecc91 | Leonidas Poulopoulos | {% block brcrmb_container %} |
85 | 33e8f0b8 | Leonidas Poulopoulos | <div class="info_content_title">{% if user.is_authenticated %}<a href="{% url group-routes %}">{% trans "My rules" %}</a>{% endif %} |
86 | 064ecc91 | Leonidas Poulopoulos | {% block breadcrumbs %}{% endblock %} |
87 | 064ecc91 | Leonidas Poulopoulos | </div>
|
88 | 5141cf4a | Leonidas Poulopoulos | {% if messages %} |
89 | 5141cf4a | Leonidas Poulopoulos | <div id="messages"> |
90 | 5141cf4a | Leonidas Poulopoulos | {% for message in messages %} |
91 | 5141cf4a | Leonidas Poulopoulos | <span{% if %} class="{{ message.tags }}"{% endif %}>{{ message }}</span><br /> |
92 | 5141cf4a | Leonidas Poulopoulos | {% endfor %} |
93 | 5141cf4a | Leonidas Poulopoulos | </div>
|
94 | 5141cf4a | Leonidas Poulopoulos | {% endif %} |
95 | 064ecc91 | Leonidas Poulopoulos | {% endblock %} |
96 | 064ecc91 | Leonidas Poulopoulos | {% block content %} |
97 | 064ecc91 | Leonidas Poulopoulos | {% endblock %} |
98 | 064ecc91 | Leonidas Poulopoulos | |
99 | 064ecc91 | Leonidas Poulopoulos | </div>
|
100 | 33e8f0b8 | Leonidas Poulopoulos | |
101 | 064ecc91 | Leonidas Poulopoulos | <div id="footer"> |
102 | 33e8f0b8 | Leonidas Poulopoulos | {% comment %} |
103 | 064ecc91 | Leonidas Poulopoulos | {% if user.is_authenticated %} |
104 | 064ecc91 | Leonidas Poulopoulos | {% 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 /> |
105 | 064ecc91 | Leonidas Poulopoulos | {% endif %} |
106 | 064ecc91 | Leonidas Poulopoulos | <a href="http://www.grnet.gr">{% trans "GRNET" %} NOC</a> | <a href="/about/info/">{% trans "Info" %}</a> | <a href="/about/terms-of-service">{% trans "Service Terms" %}</a> |
107 | 33e8f0b8 | Leonidas Poulopoulos | {% endcomment %} |
108 | 064ecc91 | Leonidas Poulopoulos | </div>
|
109 | 064ecc91 | Leonidas Poulopoulos | </div>
|
110 | 064ecc91 | Leonidas Poulopoulos | </body>
|
111 | 064ecc91 | Leonidas Poulopoulos | </html> |