Gitlab CSE Unil

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

formatage

parent 5fb313aa
......@@ -2,94 +2,109 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8" />
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width"/>
<title>{% block page_title %}ADIM{% endblock %}{% if user.is_authenticated %} - {{ user.username }}{% endif %}</title>
<link rel="stylesheet" type="text/css" media="all" href="{% static "css/libs.css" %}" />
<title>{% block page_title %}ADIM{% endblock %}{% if user.is_authenticated %} -
{{ 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 "_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 "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 PROD|yesno:"css/adim.css,_src/scss/adim.css" %}"/>
{% block page_head %}{% endblock %}
</head>
<body class="{% if user.is_anonymous %}anonymous{% else %}authenticated{% endif %} {% block body_class %}{% endblock %}">{% block page_body %}
{% block overlay %}{% endblock %}
{% block main_header %}
{% block main_navbar %}
<nav class="navbar navbar-expand-sm bg-dark navbar-dark" id="main-navbar">
<div class="navbar-header">
{% block navbar_brand %}
<a class="navbar-brand" href="{% url "adim.app:home" %}">ADIM</a>
{% 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>
{% endif %}
{% endblock %}
</div>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="collapsibleNavbar">
{% block navbar_content %}
<div class="navbar-text navbar-separator ml-auto">&nbsp;</div>
<ul class="nav navbar-nav">
{% block navbar_right_content %}
{% if user.is_authenticated %}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbardrop" data-toggle="dropdown">
<span class="fa fa-user"></span>
<span class="caret"></span>
</a>
<div class="dropdown-menu dropdown-menu-right">
<h6 class="dropdown-header"><span class="fa fa-user"></span> {{ user.username|default:user.email }}</h6>
<div class="dropdown-divider"></div>
{% if user.is_staff %}
<a class="dropdown-item" href="{% url "admin:index" %}"><span class="fa fa-cog"></span> Administration</a>
{% endif %}
<a class="dropdown-item" id="adim-logout-but" href="{% url "logout" %}"><span class="fa fa-sign-out-alt "></span> Déconnexion</a>
</div>
</li>
{% endif %}
<!--li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">Disabled</a>
</li-->
{% endblock navbar_right_content %}
</ul>
{% endblock navbar_content %}
</div>
</nav>
<body class="{% if user.is_anonymous %}anonymous{% else %}authenticated{% endif %}
{% block body_class %}{% endblock %}">{% block page_body %}
{% block overlay %}{% endblock %}
{% block main_header %}
{% block main_navbar %}
<nav class="navbar navbar-expand-sm bg-dark navbar-dark" id="main-navbar">
<div class="navbar-header">
{% block navbar_brand %}
<a class="navbar-brand" href="{% url "adim.app:home" %}">ADIM</a>
{% 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>
{% endif %}
{% endblock %}
</div>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="collapsibleNavbar">
{% block navbar_content %}
<div class="navbar-text navbar-separator ml-auto">&nbsp;</div>
<ul class="nav navbar-nav">
{% block navbar_right_content %}
{% if user.is_authenticated %}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbardrop"
data-toggle="dropdown">
<span class="fa fa-user"></span>
<span class="caret"></span>
</a>
<div class="dropdown-menu dropdown-menu-right">
<h6 class="dropdown-header">
<span class="fa fa-user"></span>
{{ user.username|default:user.email }}
</h6>
<div class="dropdown-divider"></div>
{% if user.is_staff %}
<a class="dropdown-item" href="{% url "admin:index" %}">
<span class="fa fa-cog"></span> Administration
</a>
{% endif %}
<a class="dropdown-item" id="adim-logout-but"
href="{% url "logout" %}">
<span class="fa fa-sign-out-alt "></span>
Déconnexion
</a>
</div>
</li>
{% endif %}
<!--li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">Disabled</a>
</li-->
{% endblock navbar_right_content %}
</ul>
{% endblock navbar_content %}
</div>
</nav>
{% endblock main_navbar %}
{% endblock main_header %}
{% endblock main_navbar %}
{% endblock main_header %}
{% block main_content %}{% endblock main_content%}
{% block main_content %}{% endblock main_content %}
{% block main_container %}
<div class="container" id="main"></div>
{% endblock %}
{% block main_container %}
<div class="container" id="main"></div>
{% endblock %}
{% block modals %}{% endblock %}
{% block modals %}{% endblock %}
{% block js_templates %}{% endblock %}
{% block js_templates %}{% endblock %}
{% block inline_script %}
<script>
window.LANG = '{{ LANGUAGE_CODE }}';
</script>
{% endblock %}
{% block inline_script %}
<script>
window.LANG = '{{ LANGUAGE_CODE }}';
</script>
{% 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>
</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