base.html 3.25 KB
Newer Older
cynddl's avatar
cynddl committed
1
{% load static %}
2
{% load i18n %}
cynddl's avatar
cynddl committed
3
4
5
6
<!DOCTYPE html>
<!-- Header -->
<html>
	<head>
7
	<title>Revue de presse de La Quadrature du Net</title>
cynddl's avatar
cynddl committed
8
9
10
11
12
	<meta charset="utf-8" />
	<meta name="author" content="La Quadrature du Net" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />

	<!-- Open graph -->
13
14
	<meta property="og:title" content="Revue de presse de La Quadrature du Net" />
	<meta property="og:url" content="https://www.laquadrature.net/rp/" />
cynddl's avatar
cynddl committed
15
	<meta property="og:site_name" content="La Quadrature du Net" />
16
	<meta property="og:description" content="" />
cynddl's avatar
cynddl committed
17

18
	<!-- Styles and scripts -->
Thibaut Broggi's avatar
Thibaut Broggi committed
19
	<script src="{% static 'admin.min.js' %}" charset="utf-8"></script>
20
	<link rel="stylesheet" href="{% static 'app.bundle.css' %}">
cynddl's avatar
cynddl committed
21
22
23
24
</head>
<body>

<div>
25
	<nav class="navbar navbar-sm sticky-top navbar-toggleable-md dark-blue-bg">
cynddl's avatar
cynddl committed
26
27
		<div class="collapse navbar-collapse" id="navbarSupportedContent">
			<ul class="navbar-nav ml-auto">
28
29
				{% if user.is_authenticated %}
				{% comment %} <li class="nav-item"><a class="nav-link" href="{% url 'account_profile' %}">Mon profile</a></li> {% endcomment %}
30
				<li class="nav-item"><a class="nav-link" href="{% url 'account_logout' %}">{% trans "Logout" %}</a></li>
31
				{% else %}
32
33
				<li class="nav-item"><a class="nav-link" href="{% url 'account_signup' %}">{% trans "Register" %}</a></li>
				<li class="nav-item"><a class="nav-link" href="{% url 'account_login' %}">{% trans "Login" %}</a></li>
34
				{% endif %}
35
36
37
38
39
40
41
42
43
44
45
46
47

				{% get_available_languages as LANGUAGES %}
				{% get_language_info_list for LANGUAGES as languages %}
				{% for language in languages %}
				<li class="nav-item">
					<form action="{% url 'set_language' %}" method="post">
						{% csrf_token %}
						<input name="next" type="hidden" value="{{ redirect_to }}" />
						<input name="language" type="hidden" value="{{ language.code }}" />
						<button class="btn btn-link" type="submit">[{{ language.code }}]</button>
					</form>
				</li>
				{% endfor %}
cynddl's avatar
cynddl committed
48
49
			</ul>
		</div>
50

cynddl's avatar
cynddl committed
51
52
53
54
55
	</nav>

	<nav class="navbar navbar-toggleable-md">
		<div class="collapse navbar-collapse" id="navbarSupportedContent">
			<a class="navbar-brand" href="/"><img class="float-left" src="/static/img/logo.png" alt=""></a>
56
57
58
59
				{% if user.is_authenticated %}
				<ul class="navbar-nav ml-auto">
					<li class="nav-item">
						<a class="nav-link">
60
61
						  Vous êtes {{user.groups.last.name}}
						  {% if user.groups.last.name == "padawan" %}
Thibaut Broggi's avatar
Thibaut Broggi committed
62
						  <img class="inline-image ml-2" role="img" src="{% static 'img/padawan.svg' %}" />
63
						  {% elif user.groups.last.name == "jedi" %}
Thibaut Broggi's avatar
Thibaut Broggi committed
64
65
						  <img class="inline-image ml-2" role="img" src="{% static 'img/jedi.svg' %}" />
						  {% endif %}
66
67
68
69
						</a>
					</li>
				</ul>
				{% else %}
70
				<span class="navbar-text ml-auto text-muted">For jedi by jedi</span>
71
				{% endif %}
cynddl's avatar
cynddl committed
72
73
74
75
		</div>
	</nav>
</div>

76
<section class="container-fluid light-grey-bg">
77
78
	{% block content-banner %}
	<div id="main-banner" class="text-center row justify-content-center">
cynddl's avatar
cynddl committed
79
80
81
82
		<div class="page-header col-md-10">
			<h1><span>Bienvenue sur la revue de presse de La Quadrature</span></h1>
		</div>
	</div>
83
	{% endblock %}
cynddl's avatar
cynddl committed
84

85
86
	{% block content-header %}
	{% endblock %}
cynddl's avatar
cynddl committed
87
88
89
</section>


90
<section id="main" class="container-fluid light-grey-bg">
cynddl's avatar
cynddl committed
91
92
93
94
95
	{% block content %}
	{% endblock %}
</section>

</body>
luxcem's avatar
luxcem committed
96
</html>