Skip to content

Commit

Permalink
Ajout de la page plan du site
Browse files Browse the repository at this point in the history
  • Loading branch information
chloend committed Nov 5, 2024
1 parent 58c2732 commit 954226e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions lemarche/templates/layouts/_footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ <h3 class="fr-footer__top-cat">En savoir plus</h3>
<li><a class="fr-footer__top-link" href="https://github.com/gip-inclusion/le-marche" target="_blank" title="Github (lien externe)">Code source</a></li>
<li><a class="fr-footer__top-link" href="{% url 'api:home' %}">API</a></li>
<li><a class="fr-footer__top-link" href="{% url 'pages:stats' %}">Statistiques</a></li>
<li><a class="fr-footer__top-link" href="{% url 'pages:plan-du-site' %}">Plan du site</a></li>
</ul>
</div>
</div>
Expand Down
19 changes: 19 additions & 0 deletions lemarche/templates/pages/plan_du_site.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{% extends "layouts/base.html" %}
{% load dsfr_tags process_dict static %}

{% block page_title %}Plan du site{{ block.super }}{% endblock page_title %}

{% block content %}
<section class="fr-my-6v">
<div class="fr-container">
<h1>Plan du site</h1>
<ul>
{% for item in sitemap_urls %}
<li style="margin-left: {{ item.depth|add:1 }}em;">
<a href="{{ item.url }}">{{ item.title }}</a>
</li>
{% endfor %}
</ul>
</div>
</section>
{% endblock content %}

0 comments on commit 954226e

Please sign in to comment.