Statistics
| Branch: | Tag: | Revision:

root / templates / base.html @ fb67376a

History | View | Annotate | Download (4.1 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
{% if user.is_authenticated %}
15
<script type="text/javascript" src="{% url load-js 'poller' %}"></script>
16
{% endif %}
17
<script type="text/javascript">
18

19
          function setlang(lang){
20
                $("#langsel").val(lang);
21
                $("#langform").submit();
22
        }
23

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

    
41
</script>
42
{% block extrahead %}{% endblock %}
43
</head>
44

    
45

    
46

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

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