CRUD tickets ok, before migration update models
This commit is contained in:
@@ -1,42 +1,27 @@
|
||||
<!DOCTYPE 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>
|
||||
<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="s ha384-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 %}
|
||||
{% include 'nav.html' %}
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
</header>
|
||||
|
||||
{% block content %}{% endblock %}
|
||||
{% block content %}{% endblock %}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
18
LITReview/templates/nav.html
Normal file
18
LITReview/templates/nav.html
Normal file
@@ -0,0 +1,18 @@
|
||||
{% if user.is_authenticated %}
|
||||
<ul class="navbar-nav z-index=2">
|
||||
<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 %}
|
||||
|
||||
Reference in New Issue
Block a user