43 lines
1.6 KiB
HTML
43 lines
1.6 KiB
HTML
<html lang="fr">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title> LITReview </title>
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.5/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-SgOJa3DmI69IUzQ2PVdRZhwQ+dy64/BUtbMJw1MZ8t5HZApcHrRKUc4W0kG879m7" crossorigin="anonymous">
|
|
<style>
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<nav class="navbar navbar-expand-lg">
|
|
<div class="container-fluid border border-3 border-secondary-subtle">
|
|
<div class="col d-flex justify-content-center">
|
|
<h1> LITReview </h1>
|
|
</div>
|
|
{% if user.is_authenticated %}
|
|
<ul class="navbar-nav">
|
|
<li class="nav-item">
|
|
<a href="{% url 'home' %}" class="nav-link {% if navbar == 'home' %}active{% endif %}">Flux</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a href="{% url 'posts' %}" class="nav-link {% if navbar == 'posts' %}active{% endif %}">Posts</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a href="{% url 'subscribed' %}" class="nav-link {% if navbar == 'subscribed' %}active{% endif %}">Abonnements</a>
|
|
</li>
|
|
<form class="form-inline" method="post" action="{% url 'logout' %}">
|
|
{% csrf_token %}
|
|
<button type="submit" class="btn btn-light">Se déconnecter</button>
|
|
</form>
|
|
</ul>
|
|
{% endif %}
|
|
</div>
|
|
</nav>
|
|
|
|
</header>
|
|
|
|
{% block content %}{% endblock %}
|
|
</body>
|
|
</html>
|
|
|