base.html 3.17 KB
Newer Older
1
{% load i18n %}
Valentin Samir's avatar
Valentin Samir committed
2
{% load staticfiles %}
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
<!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" %}" />
        <link href="{% static "cas_server/login.css" %}" rel="stylesheet">
    </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">
            {% block ante_messages %}{% endblock %}
            {% if auto_submit %}<noscript>{% endif %}
            {% for message in messages %}
                <div {% spaceless %}
                    {% if message.level == message_levels.DEBUG %}
                        class="alert alert-warning alert-dismissable"
                    {% elif message.level == message_levels.INFO %}
                        class="alert alert-info alert-dismissable"
                    {% elif message.level == message_levels.SUCCESS %}
                        class="alert alert-success alert-dismissable"
                    {% elif message.level == message_levels.WARNING %}
                        class="alert alert-warning alert-dismissable"
                    {% else %}
                        class="alert alert-danger alert-dismissable"
                    {% endif %}
                {% endspaceless %}>
                    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&#215;</button>
                    {{ 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>
    </body>
</html>