Commit 0015c205 authored by Élie Bouttier's avatar Élie Bouttier

transparence public

parent e2523d6e
body {
padding-top: 40px;
padding-bottom: 40px;
}
{% extends '_base.html' %}
{% extends 'base.html' %}
{% load staticfiles %}
{% block css %}
{{ block.super }}
<link href="{% static 'css/registration.css' %}" rel="stylesheet">
{% endblock %}
{% block body %}
{% block container %}
<main role="main" class="container">
<div class="jumbotron">
......
from django.contrib.auth.decorators import login_required
from django.shortcuts import render
from django.views.decorators.cache import cache_page
from .utils import Transparency
@login_required
@cache_page(60 * 60 * 8) # 8h
def transparence(request):
t = Transparency()
return render(request, 'banking/transparence.html', {
......
{% load staticfiles bootstrap4 %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="tetaneutral.net">
<title>{% block title %}tetaneutral.net{% endblock %}</title>
{% block css %}
{% bootstrap_css %}
{% endblock %}
{% block js %}
{% bootstrap_javascript jquery="full" %}
<script defer src="https://use.fontawesome.com/releases/v5.8.1/js/all.js" integrity="sha384-g5uSoOSBd7KkhAMlnQILrecXvzst9TdC09/VM+pjDTCM+1il8RHz5fKANTFFb+gQ" crossorigin="anonymous"></script>
{% endblock %}
{% block extrahead %}{% endblock extrahead %}
{% block extra_js %}{% endblock extra_js %}
</head>
<body>
{% block body %}
{% endblock %}
{% block js_end %}
{% endblock %}
</body>
</html>
{% extends '_base.html' %}
{% load bootstrap4 staticfiles %}
{% load staticfiles bootstrap4 %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="tetaneutral.net">
{% block css %}
{{ block.super }}
<link href="{% static 'css/djadhere.css' %}" rel="stylesheet">
{{ form.media.css }}
{% endblock %}
<title>{% block title %}tetaneutral.net{% endblock %}</title>
{% block js_end %}
{{ block.super }}
<script src="{% static 'js/djadhere.js' %}"></script>
{{ form.media.js }}
{% endblock %}
{% block css %}
{% bootstrap_css %}
<link href="{% static 'css/djadhere.css' %}" rel="stylesheet">
{{ form.media.css }}
{% endblock %}
{% block js %}
{% bootstrap_javascript jquery="full" %}
<script defer src="https://use.fontawesome.com/releases/v5.8.1/js/all.js" integrity="sha384-g5uSoOSBd7KkhAMlnQILrecXvzst9TdC09/VM+pjDTCM+1il8RHz5fKANTFFb+gQ" crossorigin="anonymous"></script>
{% endblock %}
{% block body %}
{% block extrahead %}{% endblock extrahead %}
{% block extra_js %}{% endblock extra_js %}
</head>
<body>
{% block pageheader %}
<header>
<nav class="navbar navbar-expand-md navbar-dark bg-dark">
......@@ -23,6 +33,7 @@
</button>
<div id="navbarTop" class="navbar-collapse collapse">
<ul class="navbar-nav mr-auto">
{% if request.user.is_authenticated %}
<li class="nav-item{% block usertab %}{% endblock %}">
<a class="nav-link" href="{% url 'adhesion-detail' %}">
<span class="fas fa-heart"></span>&nbsp;Mon adhésion
......@@ -44,36 +55,47 @@
{% endfor %}
<li class="nav-item{% block todotab %}{% endblock %}">
<a class="nav-link" href="{% url 'todo:list-tasklists' %}">
<span class="far fa-list-alt"></span>&nbsp;Liste des tâches
<span class="fas fa-tasks"></span>&nbsp;Liste des tâches
</a>
</li>
{% endif %}
<li class="nav-item{% block transparencetab %}{% endblock %}">
<a class="nav-link" href="{% url 'transparence' %}">
<span class="fas fa-coins"></span>&nbsp;Transparence
</a>
</li>
{% if request.user.is_authenticated %}
<li class="nav-item{% block statustab %}{% endblock %}">
<a class="nav-link" href="{% url 'status' %}">
<span class="fas fa-bullhorn"></span>&nbsp;Status
</a>
</li>
{% endif %}
</ul>
<ul class="navbar-nav">
{% if request.user.is_authenticated %}
{% if request.user.is_staff %}
<li class="nav-item">
<a class="nav-link" href="{% url 'admin:index' %}"><span class="glyphicon glyphicon-dashboard"></span>&nbsp;Administration</a>
<a class="nav-link" href="{% url 'admin:index' %}"><span class="fas fa-user-cog"></span>&nbsp;Administration</a>
</li>
{% endif %}
<li class="nav-item"{% block profiletab %}{% endblock %}>
<a class="nav-link" href="{% url 'profile' %}">
<span class="glyphicon glyphicon-user"></span>&nbsp;Profil
<span class="fas fa-user"></span>&nbsp;Profil
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'logout' %}" data-toggle="tooltip" data-placement="bottom" title="Logout">
<span class="glyphicon glyphicon-log-out"></span>
<span class="fas fa-sign-out-alt"></span>
</a>
</li>
{% else %}
<li class="nav-item">
<a class="nav-link" href="{% url 'login' %}" data-toggle="tooltip" data-placement="bottom" title="Login">
<span class="fas fa-sign-in-alt"></span>
</a>
</li>
{% endif %}
</ul>
</div>
</nav>
......@@ -96,4 +118,9 @@
</footer>
{% endblock %}
{% endblock %}
{% block js_end %}
<script src="{% static 'js/djadhere.js' %}"></script>
{{ form.media.js }}
{% endblock %}
</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