Monkey patched User model. Poller js is templated. Plus minor changes. With changes
[flowspy] / templates / error.html
1 {% load i18n %}
2 <html>
3 <head>
4 <title>Error</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
12 </head>
13
14
15
16 <body>
17         <div id="main">
18                         <div id="header">
19                                 <a class="grnetlogo" href="{% url group-routes %}">
20                                         <img class="logoimg" src="/static/grnet_logo.png">
21                                 </a>
22                                 <div id="title">
23                                         <a href="/">Firewall on Demand</a>
24                                 </div>
25                                 <div class="loginform">
26                                         <div id="formcontent">
27                                                 {% if user.is_authenticated %}
28                                                 <span class="topmenuuser">{% trans "Welcome" %} <strong>{{user}}</strong></span>
29                                                 {% endif %}
30                                                 <span {% if user.is_authenticated %}class="topmenuaction"{% else %}class="topmenuuser"{% endif %} >
31                                                         <form action="{% url django.views.i18n.set_language %}" method="post" style="display:inline;" id="langform">
32                                                                 {% csrf_token %}
33                                                                 <input name="next" type="hidden" value="{{ next }}" />
34                                                                 <input id="langsel" name="language" type="hidden" value="" />
35                                                                 {% 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 %}
36                                                                 {% endfor %}
37                                                         </form>
38                                                 </span>
39                                                 {% if user.is_authenticated %}
40                                                 <span class="topmenuaction"><a href="{% url user-profile %}">{% trans "My profile" %}</a></span>
41 {% if user.is_superuser %}
42                                                 <span class="topmenuaction"><a href="{% url admin:index %}">{% trans "Admin" %}</a></span>
43 {% endif %}
44                                                 <span class="topmenuaction"><a href="{% url logout %}">{% trans "Logout" %}</a></span>
45                                                 {% else %}
46                                                 <span class="topmenuaction"><a href="{% url login %}">{% trans "Login" %}</a></span>
47                                                 {% endif %}
48                                         </div>
49                                         
50                                 </div>
51                         </div>
52                         <div id="content">
53                                 {% block brcrmb_container %}
54                                 <div class="info_content_title">{% if user.is_authenticated %}<a href="{% url group-routes %}">{% trans "My routes" %}</a>{% endif %}
55                                 {% block breadcrumbs %}{% endblock %}
56                                 </div>
57                                 
58                                 {% endblock %}
59                                 {% block content %}
60                                 A required shibboleth attribute was not released towards this service<br>
61                                 Required shibboleth attributes:<br>
62                                 <strong>HTTP_EPPN</strong><br>
63                                 <strong>HTTP_SHIB_HOMEORGANIZATION</strong>
64                                 <br><br>
65                                 Optional Attributes:<br>
66                                 <strong>HTTP_SHIB_INETORGPERSON_GIVENNAME</strong><br>
67                                 <strong>HTTP_SHIB_PERSON_SURNAME</strong><br>
68                                 <strong>HTTP_SHIB_INETORGPERSON_MAIL</strong><br>
69
70                                 {% endblock %}
71
72                         </div>
73                         <div id="footer">
74                         {% if user.is_authenticated %}
75                         {% 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 />
76                         {% endif %}
77                         <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>
78                         </div>
79         </div>
80 </body>
81 </html>