Gitlab CSE Unil

Commit a81c1ca5 authored by M. Chardon's avatar M. Chardon
Browse files

formatage

parent 5fb313aa
...@@ -2,27 +2,32 @@ ...@@ -2,27 +2,32 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="fr"> <html lang="fr">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8"/>
<meta name="viewport" content="width=device-width"/> <meta name="viewport" content="width=device-width"/>
<title>{% block page_title %}ADIM{% endblock %}{% if user.is_authenticated %} - {{ user.username }}{% endif %}</title> <title>{% block page_title %}ADIM{% endblock %}{% if user.is_authenticated %} -
<link rel="stylesheet" type="text/css" media="all" href="{% static "css/libs.css" %}" /> {{ user.username }}{% endif %}</title>
<link rel="stylesheet" type="text/css" media="all" href="{% static "css/libs.css" %}"/>
{# <link rel="stylesheet" type="text/css" media="all" href="{% static "css/adim.css" %}" />#} {# <link rel="stylesheet" type="text/css" media="all" href="{% static "css/adim.css" %}" />#}
{# <link rel="stylesheet" type="text/css" media="all" href="{% static "_src/less/adim.css" %}" />#} {# <link rel="stylesheet" type="text/css" media="all" href="{% static "_src/less/adim.css" %}" />#}
<link rel="stylesheet" type="text/css" media="all" href="{% static PROD|yesno:"css/adim.css,_src/scss/adim.css" %}" /> <link rel="stylesheet" type="text/css" media="all"
href="{% static PROD|yesno:"css/adim.css,_src/scss/adim.css" %}"/>
{% block page_head %}{% endblock %} {% block page_head %}{% endblock %}
</head> </head>
<body class="{% if user.is_anonymous %}anonymous{% else %}authenticated{% endif %} {% block body_class %}{% endblock %}">{% block page_body %} <body class="{% if user.is_anonymous %}anonymous{% else %}authenticated{% endif %}
{% block overlay %}{% endblock %} {% block body_class %}{% endblock %}">{% block page_body %}
{% block main_header %} {% block overlay %}{% endblock %}
{% block main_header %}
{% block main_navbar %} {% block main_navbar %}
<nav class="navbar navbar-expand-sm bg-dark navbar-dark" id="main-navbar"> <nav class="navbar navbar-expand-sm bg-dark navbar-dark" id="main-navbar">
<div class="navbar-header"> <div class="navbar-header">
{% block navbar_brand %} {% block navbar_brand %}
<a class="navbar-brand" href="{% url "adim.app:home" %}">ADIM</a> <a class="navbar-brand" href="{% url "adim.app:home" %}">ADIM</a>
{% if adim_prod == false %} {% if adim_prod == false %}
<span style="color:red;font-weight: bold;font-size: large;"><i class="fa fa-exclamation-triangle"></i> ENVIRONNEMENT DE TEST&nbsp;</span> <span style="color:red;font-weight: bold;font-size: large;">
<i class="fa fa-exclamation-triangle"></i> ENVIRONNEMENT DE TEST&nbsp;
</span>
{% endif %} {% endif %}
{% endblock %} {% endblock %}
</div> </div>
...@@ -36,17 +41,27 @@ ...@@ -36,17 +41,27 @@
{% block navbar_right_content %} {% block navbar_right_content %}
{% if user.is_authenticated %} {% if user.is_authenticated %}
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbardrop" data-toggle="dropdown"> <a class="nav-link dropdown-toggle" href="#" id="navbardrop"
data-toggle="dropdown">
<span class="fa fa-user"></span> <span class="fa fa-user"></span>
<span class="caret"></span> <span class="caret"></span>
</a> </a>
<div class="dropdown-menu dropdown-menu-right"> <div class="dropdown-menu dropdown-menu-right">
<h6 class="dropdown-header"><span class="fa fa-user"></span> {{ user.username|default:user.email }}</h6> <h6 class="dropdown-header">
<span class="fa fa-user"></span>
{{ user.username|default:user.email }}
</h6>
<div class="dropdown-divider"></div> <div class="dropdown-divider"></div>
{% if user.is_staff %} {% if user.is_staff %}
<a class="dropdown-item" href="{% url "admin:index" %}"><span class="fa fa-cog"></span> Administration</a> <a class="dropdown-item" href="{% url "admin:index" %}">
<span class="fa fa-cog"></span> Administration
</a>
{% endif %} {% endif %}
<a class="dropdown-item" id="adim-logout-but" href="{% url "logout" %}"><span class="fa fa-sign-out-alt "></span> Déconnexion</a> <a class="dropdown-item" id="adim-logout-but"
href="{% url "logout" %}">
<span class="fa fa-sign-out-alt "></span>
Déconnexion
</a>
</div> </div>
</li> </li>
{% endif %} {% endif %}
...@@ -66,30 +81,30 @@ ...@@ -66,30 +81,30 @@
</nav> </nav>
{% endblock main_navbar %} {% endblock main_navbar %}
{% endblock main_header %} {% endblock main_header %}
{% block main_content %}{% endblock main_content%} {% block main_content %}{% endblock main_content %}
{% block main_container %} {% block main_container %}
<div class="container" id="main"></div> <div class="container" id="main"></div>
{% endblock %} {% endblock %}
{% block modals %}{% endblock %} {% block modals %}{% endblock %}
{% block js_templates %}{% endblock %} {% block js_templates %}{% endblock %}
{% block inline_script %} {% block inline_script %}
<script> <script>
window.LANG = '{{ LANGUAGE_CODE }}'; window.LANG = '{{ LANGUAGE_CODE }}';
</script> </script>
{% endblock %} {% endblock %}
{% block content_js %}{% endblock %} {% block content_js %}{% endblock %}
{% block post_js %}{% endblock %} {% block post_js %}{% endblock %}
{#{% block requirejs_bootstrap %}{% endblock %}#} {#{% block requirejs_bootstrap %}{% endblock %}#}
{% endblock page_body %}</body> {% endblock page_body %}</body>
</html> </html>
......
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