Allow logged users to comment posts. Edition is not allowed via the API since it doesn't support auth yet. Symfony UX is used with Turbo to avoid full pages reload, without JavaScript™. Co-authored-by: clfreville2 <clement.freville2@etu.uca.fr> Reviewed-on: https://codefirst.iut.uca.fr/git/clement.freville2/herbarium/pulls/10
31 lines
1.3 KiB
Twig
31 lines
1.3 KiB
Twig
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>{% block title %}Welcome to Herbarium!{% endblock %}</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
{% block stylesheets %}
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
|
|
{% endblock %}
|
|
|
|
{% block javascripts %}
|
|
{% block importmap %}{{ importmap('app') }}{% endblock %}
|
|
{% endblock %}
|
|
</head>
|
|
<body data-turbo="false">
|
|
<nav class="navbar navbar-expand-lg bg-body-tertiary">
|
|
<div class="container-fluid">
|
|
<a class="navbar-brand" href="{{ path('app_species_index') }}">Herbarium</a>
|
|
{% if app.user %}
|
|
<a class="nav-link" href="{{ path('app_logout') }}">{{ app.user.email }} - Déconnexion</a>
|
|
{% else %}
|
|
<a class="nav-link" href="{{ path('app_login') }}">Connexion</a>
|
|
{% endif %}
|
|
</div>
|
|
</nav>
|
|
<div class="container my-4">
|
|
{% block body %}{% endblock %}
|
|
</div>
|
|
</body>
|
|
</html>
|