Statistics
| Branch: | Tag: | Revision:

root / templates / base.html @ bec1a51b

History | View | Annotate | Download (4 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
<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
<script type="text/javascript" src="/static/js/jquery.tooltip.min.js"></script>
14
<script type="text/javascript">
15

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

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

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

    
42

    
43

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

    
98
                        </div>
99
                        
100
                        <div id="footer">
101
                        {% if user.is_authenticated %}
102
                        {% 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 />
103
                        {% endif %}
104
                        <a href="http://www.grnet.gr">{% trans "GRNET" %} NOC</a> | <a href="#">{% trans "Info" %}</a> | <a href="#">{% trans "Service Terms" %}</a>
105
                        </div>
106
        </div>
107
</body>
108
</html>