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