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