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