2016-08-27 09:13:55 +00:00
{% load i18n %}{% load staticfiles %}{% get_current_language as LANGUAGE_CODE %}<!DOCTYPE html>
< html { % if LANGUAGE_CODE % } lang = "{{LANGUAGE_CODE}}" { % endif % } >
2016-07-23 23:49:03 +00:00
< 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]-->
2016-07-29 22:46:57 +00:00
{% if settings.CAS_FAVICON_URL %}< link rel = "shortcut icon" href = "{{settings.CAS_FAVICON_URL}}" / > {% endif %}
2016-07-29 11:56:23 +00:00
< link href = "{% static " cas_server / styles . css " % } " rel = "stylesheet" >
2016-07-23 23:49:03 +00:00
< / head >
< body >
2016-08-02 16:48:27 +00:00
< div id = "wrap" >
2016-07-23 23:49:03 +00:00
< 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" >
2016-08-02 16:48:27 +00:00
{% if settings.CAS_LOGO_URL %}< img src = "{{settings.CAS_LOGO_URL}}" alt = "cas-logo" / > {% endif %}
2016-07-23 23:49:03 +00:00
{% 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-08-24 15:57:02 +00:00
{% for msg in CAS_INFO_RENDER %}
< div class = "alert alert-{{msg.type}}{% if msg.discardable %} alert-dismissable{% endif %}" >
{% if msg.discardable %}< button type = "button" class = "close" data-dismiss = "alert" aria-hidden = "true" id = "info-{{msg.name}}" > × < / button > {% endif %}
< p > {{msg.message}}< / p >
< / div >
{% endfor %}
2016-07-29 12:33:02 +00: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 >
2016-08-24 15:57:02 +00:00
< p > {% blocktrans %}A new version of the application is available. This instance runs {{VERSION}} and the last version is {{LAST_VERSION}}. Please consider upgrading.{% endblocktrans %}< / p >
2016-07-29 12:33:02 +00:00
< / div >
{% endif %}
{% block ante_messages %}{% endblock %}
2016-07-23 23:49:03 +00:00
{% for message in messages %}
< div { % spaceless % }
{% if message.level == message_levels.DEBUG %}
2016-07-29 11:56:23 +00:00
class="alert alert-warning"
2016-07-23 23:49:03 +00:00
{% elif message.level == message_levels.INFO %}
2016-07-29 11:56:23 +00:00
class="alert alert-info"
2016-07-23 23:49:03 +00:00
{% elif message.level == message_levels.SUCCESS %}
2016-07-29 11:56:23 +00:00
class="alert alert-success"
2016-07-23 23:49:03 +00:00
{% elif message.level == message_levels.WARNING %}
2016-07-29 11:56:23 +00:00
class="alert alert-warning"
2016-07-23 23:49:03 +00:00
{% else %}
2016-07-29 11:56:23 +00:00
class="alert alert-danger"
2016-07-23 23:49:03 +00:00
{% endif %}
{% endspaceless %}>
2016-08-24 15:57:02 +00:00
< p > {{message|safe}}< / p >
2016-07-23 23:49:03 +00:00
< / 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 -->
2016-08-02 16:48:27 +00:00
< / div >
< div style = "clear: both;" > < / div >
{% if settings.CAS_SHOW_POWERED %}
< div id = "footer" >
< p > < a class = "text-muted" href = "https://pypi.python.org/pypi/django-cas-server" > django-cas-server powered< / a > < / p >
< / div >
{% endif %}
< script src = "{{settings.CAS_COMPONENT_URLS.jquery}}" > < / script >
< script src = "{{settings.CAS_COMPONENT_URLS.bootstrap3_js}}" > < / script >
< script src = "{% static " cas_server / functions . js " % } " > < / script >
2016-08-24 15:57:02 +00:00
< script type = "text/javascript" >
{% if settings.CAS_NEW_VERSION_HTML_WARNING and upgrade_available %}
discard_and_remember("#alert-version", "cas-alert-version", "{{LAST_VERSION}}");
{% endif %}
{% for msg in CAS_INFO_RENDER %}
{% if msg.discardable %}
discard_and_remember("#info-{{msg.name}}", "cas-info-{{msg.name}}", "{{msg.hash}}");
{% endif %}
{% endfor %}
{% block javascript_inline %}{% endblock %}
< / script >
2016-08-02 16:48:27 +00:00
{% block javascript %}{% endblock %}
2016-07-23 23:49:03 +00:00
< / body >
< / html >
2016-08-02 16:48:27 +00:00
<!--
Powered by django-cas-server version {{VERSION}}
Pypi: https://pypi.python.org/pypi/django-cas-server
github: https://github.com/nitmir/django-cas-server
-->