Forum / templates /base.html
Docfile's picture
Upload 6 files
f631d90 verified
raw
history blame
1.21 kB
<!doctype html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>{% block title %}Forum Anonyme{% endblock %}</title>
<link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}">
</head>
<body>
<div class="container">
<header>
<h1><a href="{{ url_for('index') }}">Forum Anonyme</a></h1>
<nav>
<a href="{{ url_for('new_thread') }}">Nouveau fil</a> |
<a href="{{ url_for('moderate') }}">Modération</a>
</nav>
<form action="{{ url_for('search') }}" method="GET">
<input type="text" name="q" placeholder="Recherche..." required>
<button type="submit">Chercher</button>
</form>
</header>
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
<ul class="flashes">
{% for category, message in messages %}
<li class="flash {{ category }}">{{ message }}</li>
{% endfor %}
</ul>
{% endif %}
{% endwith %}
{% block content %}{% endblock %}
</div>
</body>
</html>