2015-12-11 13:29:37 +01:00
{% load i18n %}
2015-11-20 16:00:26 +01:00
{% load staticfiles %}
2016-07-24 01:49:03 +02:00
<!DOCTYPE html>
< html { % if request . LANGUAGE_CODE % } lang = "{{ request.LANGUAGE_CODE }}" { % endif % } >
< head >
< meta charset = "utf-8" >
<!-- [if IE]><meta http - equiv="X - UA - Compatible" content="IE=edge" /><![endif] -->
< meta name = "viewport" content = "width=device-width, initial-scale=1" >
< title > {% block title %}{% trans "Central Authentication Service" %}{% endblock %}< / title >
< link href = "{{settings.CAS_COMPONENT_URLS.bootstrap3_css}}" rel = "stylesheet" >
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!-- [if lt IE 9]>
< script src = "{{settings.CAS_COMPONENT_URLS.html5shiv}}" > < / script >
< script src = "{{settings.CAS_COMPONENT_URLS.respond}}" > < / script >
<![endif]-->
< link rel = "shortcut icon" href = "{% static " cas_server / favicon . ico ? v = 1" % } " / >
2016-07-29 13:56:23 +02:00
< link href = "{% static " cas_server / styles . css " % } " rel = "stylesheet" >
2016-07-24 01:49:03 +02:00
< / head >
< body >
< div class = "container" >
{% if auto_submit %}< noscript > {% endif %}
< div class = "row" >
< div class = "col-lg-12 col-md-12 col-sm-12 col-xs-12" >
< h1 id = "app-name" >
{% if settings.CAS_LOGO_URL %}< img src = "{{settings.CAS_LOGO_URL}}" > < / img > {% endif %}
{% trans "Central Authentication Service" %}< / h1 >
< / div >
< / div >
{% if auto_submit %}< / noscript > {% endif %}
< div class = "row" >
< div class = "col-lg-3 col-md-3 col-sm-2 col-xs-12" > < / div >
< div class = "col-lg-6 col-md-6 col-sm-8 col-xs-12" >
{% if auto_submit %}< noscript > {% endif %}
2016-07-29 14:33:02 +02:00
{% if settings.CAS_NEW_VERSION_HTML_WARNING and upgrade_available %}
< div class = "alert alert-info alert-dismissable" >
< button type = "button" class = "close" data-dismiss = "alert" aria-hidden = "true" id = "alert-version" > × < / button >
{% blocktrans %}A new version of the application is available. This instance runs {{VERSION}} and the last version is {{LAST_VERSION}}. Please consider upgrading.{% endblocktrans %}
< / div >
{% endif %}
{% block ante_messages %}{% endblock %}
2016-07-24 01:49:03 +02:00
{% for message in messages %}
< div { % spaceless % }
{% if message.level == message_levels.DEBUG %}
2016-07-29 13:56:23 +02:00
class="alert alert-warning"
2016-07-24 01:49:03 +02:00
{% elif message.level == message_levels.INFO %}
2016-07-29 13:56:23 +02:00
class="alert alert-info"
2016-07-24 01:49:03 +02:00
{% elif message.level == message_levels.SUCCESS %}
2016-07-29 13:56:23 +02:00
class="alert alert-success"
2016-07-24 01:49:03 +02:00
{% elif message.level == message_levels.WARNING %}
2016-07-29 13:56:23 +02:00
class="alert alert-warning"
2016-07-24 01:49:03 +02:00
{% else %}
2016-07-29 13:56:23 +02:00
class="alert alert-danger"
2016-07-24 01:49:03 +02:00
{% endif %}
{% endspaceless %}>
{{ message }}
< / div >
{% endfor %}
{% if auto_submit %}< / noscript > {% endif %}
{% block content %}{% endblock %}
< / div >
< div class = "col-lg-3 col-md-3 col-sm-2 col-xs-0" > < / div >
< / div >
< / div > <!-- /container -->
< script src = "{{settings.CAS_COMPONENT_URLS.jquery}}" > < / script >
< script src = "{{settings.CAS_COMPONENT_URLS.bootstrap3_js}}" > < / script >
2016-07-29 14:33:02 +02:00
{% if settings.CAS_NEW_VERSION_HTML_WARNING and upgrade_available %}
< script src = "{% static " cas_server / alert-version . js " % } " > < / script >
< script > alert _version ( "{{LAST_VERSION}}" ) < / script >
{% endif %}
2016-07-24 01:49:03 +02:00
< / body >
< / html >