Statistics
| Branch: | Tag: | Revision:

root / templates / base.html @ c1509909

History | View | Annotate | Download (3.9 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="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
<script type="text/javascript" src="{% url load-js 'poller' %}"></script>
13
<script type="text/javascript">
14

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

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

    
37
</script>
38
{% block extrahead %}{% endblock %}
39
</head>
40

    
41

    
42

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

    
97
                        </div>
98
                        <div id="footer">
99
                        {% if user.is_authenticated %}
100
                        {% 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 />
101
                        {% endif %}
102
                        <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>
103
                        </div>
104
        </div>
105
</body>
106
</html>