2020-09-27 01:32:38 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="fr">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<link rel="stylesheet" href="/static/styles/index.css">
|
|
|
|
<link rel="stylesheet" href="/static/styles/base.css">
|
|
|
|
<title>Partage de liens</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="menu">
|
2020-10-21 10:03:43 +02:00
|
|
|
<h1><a href="/" id="lienAccueil">Liens</a> </h1>
|
2020-09-27 01:32:38 +02:00
|
|
|
<header>
|
2020-10-21 10:03:43 +02:00
|
|
|
<a {% if recherche %} id="select" {% else %} href="/recherche" {% endif %}>Recherche</a>
|
2020-10-07 11:42:30 +02:00
|
|
|
<a href="/ajout">Ajout</a>
|
|
|
|
<a href="/apropos">A propos</a>
|
2020-09-27 01:32:38 +02:00
|
|
|
</header>
|
|
|
|
</div>
|
2020-10-21 21:11:14 +02:00
|
|
|
{% if recherche %}
|
|
|
|
<div>
|
|
|
|
<p>Recherche</p>
|
|
|
|
<div id="listCategorie">
|
|
|
|
</div>
|
|
|
|
<div id="listTags">
|
|
|
|
</div>
|
|
|
|
<form>
|
|
|
|
<select id="categorie" name="categorie">
|
|
|
|
<option value="informatique">Informatique</option>
|
|
|
|
<option value="musique">Musique</option>
|
|
|
|
<option value="autres">Autre</option>
|
|
|
|
</select>
|
|
|
|
<input type="button" value="Ajouter" onClick="addCat()">
|
|
|
|
<input id="tag" type="text" value="tags">
|
|
|
|
<input type="button" value="Ajouter" onClick="addTag()">
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{% else %}
|
2020-10-07 11:42:30 +02:00
|
|
|
<div id="categories">
|
|
|
|
<ul>
|
|
|
|
<li><a href="/">Toutes catégories</a></li>
|
|
|
|
<li class="informatique"><a href="/categories/informatique">Informatique</a></li>
|
|
|
|
<li class="musique"><a href="/categories/musique">Musique</a></li>
|
|
|
|
<li class="autres"><a href="/categories/autres">Autres</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2020-10-21 09:55:15 +02:00
|
|
|
{% endif %}
|
2020-10-07 11:42:30 +02:00
|
|
|
<p>Rafraichissez la page pour voir les derniers liens ajoutés.</p>
|
2020-09-27 01:32:38 +02:00
|
|
|
<hr>
|
2020-10-07 11:42:30 +02:00
|
|
|
{% for lien in listeLiens %}
|
|
|
|
<div class="elem {{lien.categorie}}">
|
|
|
|
<h2>{{lien.titre}}</h2>
|
|
|
|
<p><a href="{{lien.url}}">{{lien.url}}</a></p>
|
|
|
|
<hr>
|
|
|
|
<p>{{lien.desc}}</p>
|
2020-10-20 13:02:13 +02:00
|
|
|
<p>Tags:</p>
|
2020-10-20 21:41:16 +02:00
|
|
|
<ul class="tags">
|
2020-10-20 13:02:13 +02:00
|
|
|
{% for tag in lien.tags %}
|
|
|
|
<li>{{tag}}</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2020-10-07 11:42:30 +02:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
2020-09-27 01:32:38 +02:00
|
|
|
<footer>
|
|
|
|
<hr>
|
|
|
|
Version Alpha
|
|
|
|
</footer>
|
2020-10-21 09:55:15 +02:00
|
|
|
{% if recherche %}
|
|
|
|
<script src="/static/recherche.js"></script>
|
|
|
|
{% endif %}
|
2020-09-27 01:32:38 +02:00
|
|
|
</body>
|
|
|
|
</html>
|