Statistics
| Branch: | Tag: | Revision:

root / templates / base.html @ 97e42c7d

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" src="{% url load-js 'poller' %}"></script>
12
<script type="text/javascript">
13

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

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

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

    
40

    
41

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

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