Made the appropriate changes to settings.py.dist
[flowspy] / templates / error.html
1 {% extends "base.html" %}
2 {% load i18n %}
3
4 {% block title %}{% if error %}{% if inactive %}{% trans "Activation Pending" %}{% else %}{% trans "Error" %}{% endif %}{% endif %}{% endblock %}
5
6 {% block extrahead %}
7         <script type="text/javascript">
8         $(document).ready(function(){
9                 $(".relogin").tooltip({ position: "bottom center", opacity: 0.7});
10                 });
11         </script>
12         <style type="text/css">
13
14             .tooltip {
15                 display: none;
16                 background: transparent url(/static/black_arrow_updown.png);
17                 font-size: 12px;
18                 height: 70px;
19                 width: 160px;
20                 padding: 25px;
21                         padding-top: 30px;
22                 color: #fff;
23             }
24
25 </style>
26 <script type="text/javascript">
27
28         function setlang(lang){
29                 $("#langsel").val(lang);
30                 $("#langform").submit();
31         }
32
33 </script>
34 {% endblock %}
35
36
37 {% block menublock %}
38         {% if user.is_authenticated %}
39                 <span class="topmenuuser">{% trans "Welcome" %} <strong>{{user}}</strong></span>
40         {% endif %}
41         {% if user.is_authenticated %}
42         <span class="topmenuaction"><a href="{% url user-profile %}">{% trans "My profile" %}</a></span>
43         {% if user.is_superuser %}
44                 <span class="topmenuaction"><a href="{% url admin:index %}">{% trans "Admin" %}</a></span>
45         {% endif %}
46         <span class="topmenuaction"><a href="{% url logout %}">{% trans "Logout" %}</a></span>
47         {% else %}
48         <span class="topmenuaction relogin" title="After clicking Retry Login, it is strongly suggested to close your browser and visit the page again"><a href="{% url logout %}">{% trans "Retry Login" %}</a></span>
49         {% endif %}
50 {% endblock %}
51
52 {% block content %}
53         {% if error %}{% if inactive %}<h2>{% trans "Activation Pending" %}</h2>{% else %}<h2>{% trans "Error" %}</h2>{% endif %}{% endif %}
54         <div>
55         {% if missing_attributes %}
56         <p>{% trans "One or more required shibboleth attributes were not released towards this service" %}</p>
57         {% endif %}
58         <p {% if not inactive %}style="color: red;"{% endif %}>{% autoescape off %}{{error}}{% endautoescape %}</p>
59         {% if missing_attributes %}
60         <p>
61         {% trans "Required shibboleth attributes" %}:<br>
62         <ul>
63         <li>HTTP_EPPN</li>
64         <li>HTTP_SHIB_HOMEORGANIZATION</li>
65         <li>HTTP_SHIB_INETORGPERSON_MAIL</li>
66         <li>An appropriate HTTP_SHIB_EP_ENTITLEMENT</li>
67         </ul>
68         {% trans "Optional" %}:
69         <ul>
70         <li>HTTP_SHIB_INETORGPERSON_GIVENNAME</li>
71         <li>HTTP_SHIB_PERSON_SURNAME</li>
72         </ul>
73         </p>
74         {% endif %}
75         </div>
76 {% endblock %}