Commit 9f38b1f6 authored by Kroustouris Stauros's avatar Kroustouris Stauros

improve the behaviour of the footer

parent 3d6975fd
{% load i18n %}
<footer {% if user.is_authenticated %}class="auth"{% endif %}>
<div class="container">
{% if user.is_authenticated %}
{% trans "If you have any questions or need help, contact" %} {{DOMAIN_HELPDESK_DICT.name}} (<a href="{{DOMAIN_HELPDESK_DICT.uri}}">{{DOMAIN_HELPDESK_DICT.uri}}</a>) - {{DOMAIN_HELPDESK_DICT.phone}}</br>
{% endif %}
{% trans "This is a service provided by" %} <a href="{{PROV_TEAM.url}}" target="_blank">{{PROV_TEAM.name}}</a>
{% for media in SOCIAL_MEDIA_LIST %}
<a href="{{media.url}}" target="_blank">
<i class="{{media.icon}}"></i>
</a>
{% endfor %}
Powered by <a href="http://djnro.grnet.gr/" target="_blank">DjNRO</a> v{{VERSION}}
<div class="">
<div class="container">
{% if user.is_authenticated %}
{% trans "If you have any questions or need help, contact" %} {{ BRANDING.helpdesk.name }} (<a href="{{ BRANDING.helpdesk.uri}}">{{BRANDING.helpdesk.uri}}</a>) - {{BRANDING.helpdesk.phone}}</br>
{% endif %}
{% trans "This is a service provided by" %} <a href="{{ BRANDING.service_provided_by.url}}" target="_blank">{{BRANDING.service_provided_by.name}}</a>
{% for media in BRANDING.social_media %}
<a href="{{media.url}}" target="_blank">
<i class="{{media.icon}}"></i>
</a>
{% endfor %}
Powered by <a href="http://djnro.grnet.gr/" target="_blank">DjNRO</a> v{{VERSION}}
<div class="">
{% include 'partial/bottom_iframe.html' %}
</div>
</div>
</div>
</footer>
......@@ -95,6 +95,7 @@ NRO specific parameters. These affect HTML templates::
#Helpdesk, used in base.html:
NRO_DOMAIN_HELPDESK_DICT = {"name": _("Domain Helpdesk"), 'email':'helpdesk@example.com', 'phone': '12324567890', 'uri': 'helpdesk.example.com'}
Set the Realm country for REALM model::
#Countries for Realm model:
......@@ -102,6 +103,12 @@ Set the Realm country for REALM model::
('country_2letters', 'Country' ),
)
### Adding iframe in footer
In case you need to add an iframe with banners at the bottom of the every page, you can paste your iframe code at bottom_iframe template under 'djnro/templates/partial/bottom_iframe.html'
Attribute map to match your AAI policy and SSO software (typically Shibboleth SP)::
#Shibboleth attribute map
......
......@@ -11,10 +11,18 @@ html, body {
}
footer {
height: 60px;
background: #eee;
height: 300px;
text-align: center;
position: relative;
}
footer > div {
position: absolute;
bottom: 0;
padding: 25px;
background: #eee;
left: 0;
right: 0;
}
footer.auth {
......@@ -25,7 +33,7 @@ footer.auth {
#wrap {
min-height: 100%;
height: auto !important;
margin: 0 auto -60px;
margin: 0 auto -300px;
}
.push-top {
......@@ -33,7 +41,7 @@ footer.auth {
}
.push {
height: 60px;
height: 300px;
}
.home .squares {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment