Skip to content

Commit

Permalink
Update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Ash-Crow committed Jan 7, 2025
1 parent fad26d0 commit 2903223
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 2 additions & 4 deletions example_app/templates/example_app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@ <h2>
<a href="https://www.systeme-de-design.gouv.fr/">système de design de l’État</a> dans des projets Django.
</p>
<p>
Elle a initialement été développée dans le cadre du défi
<a href="https://github.com/entrepreneur-interet-general/opencollectivites">Open Collectivités</a>
et est un travail en cours (les composants sont actuellement développés au fur et à mesure de leur
utilisation), cf. la page <a href="{% url 'components_index' %}">Composants</a>.
Django-dsfr implémente la <a href="https://www.systeme-de-design.gouv.fr/a-propos/versions/version-courante/">version
{{ dsfr_version }} du système de design de l’État</a>.
</p>
</div>
<div class="fr-grid-row fr-grid-row--gutters fr-mb-3w">
Expand Down
3 changes: 2 additions & 1 deletion example_app/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from django.utils.translation import gettext_lazy as _
from django.views.decorators.http import require_safe

from dsfr.utils import generate_summary_items
from dsfr.utils import dsfr_version, generate_summary_items

from example_app.forms import AccentColorForm, ExampleForm, FullColorForm

Expand Down Expand Up @@ -98,6 +98,7 @@ def index(request):
"Notes",
]
)
payload["dsfr_version"] = dsfr_version()

return render(request, "example_app/index.html", payload)

Expand Down

0 comments on commit 2903223

Please sign in to comment.