Statistics
| Branch: | Tag: | Revision:

root / templates / base.html @ 9cad4715

History | View | Annotate | Download (3.7 kB)

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="-1">
7
<script src="/static/js/jquery.min.js" type="text/javascript"></script>
8
<link rel="stylesheet" type="text/css" href="/static/css/base.css">
9
<link rel="stylesheet" type="text/css" href="/static/css/smoothness/jquery-ui-1.8.13.custom.css">
10
<script type="text/javascript" src="/static/js/jquery-ui-1.8.12.custom.min.js"></script>
11
<script type="text/javascript">
12

13
          function setlang(lang){
14
                $("#langsel").val(lang);
15
                $("#langform").submit();
16
        }
17

18
//function highlight(elemId){
19
//    var elem = $(elemId);
20
//    elem.css("background-color", "#ffffbb");
21
//    setTimeout(function() { $(elemId).animate({ backgroundColor: "white" }, 2000)}, 1500);
22
//}
23
//
24
//   
25
//$(document).ready( function(){
26
//        if (document.location.hash) {
27
//            highlight(document.location.hash);
28
//        }
29
//        $('a[href*=#]').click(function(){
30
//            var elemId = '#' + $(this).attr('href').split('#')[1];
31
//            highlight(elemId);
32
//        });
33
//});
34

    
35
</script>
36
{% block extrahead %}{% endblock %}
37
</head>
38

    
39

    
40

    
41
<body>
42
        <div id="main">
43
                        <div id="header">
44
                                <a class="grnetlogo" href="/">
45
                                        <img class="logoimg" src="/static/grnet_logo.png">
46
                                </a>
47
                                <div id="title">
48
                                        <a href="/">Firewall on Demand</a>
49
                                </div>
50
                                <div class="loginform">
51
                                        <div id="formcontent">
52
                                                {% if user.is_authenticated %}
53
                                                <span class="topmenuuser">{% trans "Welcome" %} <strong>{{user}}</strong></span>
54
                                                {% endif %}
55
                                                <span {% if  %}class="topmenuaction"{% else %}class="topmenuuser"{% endif %} >
56
                                                        <form action="{% url django.views.i18n.set_language %}" method="post" style="display:inline;" id="langform">
57
                                                                {% csrf_token %}
58
                                                                <input name="next" type="hidden" value="{{ next }}" />
59
                                                                <input id="langsel" name="language" type="hidden" value="" />
60
                                                                {% 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 %}
61
                                                                {% endfor %}
62
                                                        </form>
63
                                                </span>
64
                                                {% if user.is_authenticated %}
65
                                                <span class="topmenuaction"><a href="">{% trans "My profile" %}</a></span>
66
{% if user.is_superuser %}
67
                                                <span class="topmenuaction"><a href="{% url admin:index %}">{% trans "Admin" %}</a></span>
68
{% endif %}
69
                                                <span class="topmenuaction"><a href="{% url logout %}">{% trans "Logout" %}</a></span>
70
                                                {% else %}
71
                                                <span class="topmenuaction"><a href="{% url login %}">{% trans "Login" %}</a></span>
72
                                                {% endif %}
73
                                        </div>
74
                                        
75
                                </div>
76
                        </div>
77
                        <div id="content">
78
                                {% block brcrmb_container %}
79
                                <div class="info_content_title">{% if user.is_authenticated %}<a href="/">{% trans "My routes" %}</a>{% endif %}
80
                                {% block breadcrumbs %}{% endblock %}
81
                                </div>
82
                                {% if messages %}
83
                                <div id="messages">
84
                                {% for message in messages %}
85
                                        <span{% if  %} class="{{ message.tags }}"{% endif %}>{{ message }}</span><br />
86
                                {% endfor %}
87
                                </div>
88
                                {% endif %}
89
                                {% endblock %}
90
                                {% block content %}
91
                                {% endblock %}
92

    
93
                        </div>
94
                        <div id="footer">
95
                        {% if user.is_authenticated %}
96
                        {% 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 />
97
                        {% endif %}
98
                        <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>
99
                        </div>
100
        </div>
101
</body>
102
</html>