-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ajout du chemin de fer dans l'espace d'échanges et la documenta…
…tion (#649) ## Description 🎸 Ajout du chemin de fer sur les vues de detail de `Forum` et de `Topic` ## Type de changement 🎢 Nouvelle fonctionnalité (changement non cassant qui ajoute une fonctionnalité). 🎨 changement d'UI ### Points d'attention 🦺 prise en compte du top_level parent pour déterminer si le `Forum` appartient à l'espace d'échanges ou à la documentation 🦺 les liens vers documentation sont nécessairement `/documentation` 🦺 l'espace d'échange est le premier forum public de niveau 0, les liens vers ce forum sont remplacés par `/topics/` 🦺 #651 requise pour cette PR 🦺 ### Captures d'écran (optionnel) Thème de la documentation ![image](https://github.com/gip-inclusion/itou-communaute-django/assets/11419273/252596bc-eb0a-4435-9731-b0779cc90194) Fiche pratique dans un thème de la documentation ![image](https://github.com/gip-inclusion/itou-communaute-django/assets/11419273/c4c9bbb0-6ef4-4c87-95b0-eee9b26f8d03) Topic dans une fiche pratique ![image](https://github.com/gip-inclusion/itou-communaute-django/assets/11419273/2729ac62-f663-46aa-bdb2-2e4b670f0fe5) Sous forum dans l'espace d'échanges ![image](https://github.com/gip-inclusion/itou-communaute-django/assets/11419273/fd6e702b-ab1d-42a0-9b1f-0eb2a5b7988d) Topic dans un sous forum de l'espace d'échanges ![image](https://github.com/gip-inclusion/itou-communaute-django/assets/11419273/378375b6-3281-4060-9ed8-532425a3b83f) Topic dans l'espace d'échanges ![image](https://github.com/gip-inclusion/itou-communaute-django/assets/11419273/73dc6607-678f-4620-9be3-829185a30099)
- Loading branch information
1 parent
3b539d2
commit 7cc5d14
Showing
18 changed files
with
479 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
139 changes: 139 additions & 0 deletions
139
lacommunaute/forum/tests/__snapshots__/tests_views.ambr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
# serializer version: 1 | ||
# name: TestBreadcrumb.test_category_forum[category_forum] | ||
''' | ||
<nav aria-label="Fil d'ariane" class="c-breadcrumb"> | ||
<ol class="breadcrumb"> | ||
<li class="breadcrumb-item">Retourner vers</li> | ||
<li class="breadcrumb-item"> | ||
|
||
<a class="matomo-event" data-matomo-action="view" data-matomo-category="engagement" data-matomo-option="documentation_breadcrumb" href="/documentation/">Documentation</a> | ||
|
||
</li> | ||
|
||
|
||
</ol> | ||
</nav> | ||
''' | ||
# --- | ||
# name: TestBreadcrumb.test_child_category_forum[child_category_forum] | ||
''' | ||
<nav aria-label="Fil d'ariane" class="c-breadcrumb"> | ||
<ol class="breadcrumb"> | ||
<li class="breadcrumb-item">Retourner vers</li> | ||
<li class="breadcrumb-item"> | ||
|
||
<a class="matomo-event" data-matomo-action="view" data-matomo-category="engagement" data-matomo-option="documentation_breadcrumb" href="/documentation/">Documentation</a> | ||
|
||
</li> | ||
|
||
|
||
<li class="breadcrumb-item"> | ||
<a class="matomo-event" data-matomo-action="view" data-matomo-category="engagement" data-matomo-option="forum" href="/forum/a-category-[PK of Forum]/">A Category</a> | ||
</li> | ||
|
||
|
||
|
||
</ol> | ||
</nav> | ||
''' | ||
# --- | ||
# name: TestBreadcrumb.test_forum[forum] | ||
''' | ||
<nav aria-label="Fil d'ariane" class="c-breadcrumb"> | ||
<ol class="breadcrumb"> | ||
<li class="breadcrumb-item">Retourner vers</li> | ||
<li class="breadcrumb-item"> | ||
|
||
<a class="matomo-event" data-matomo-action="view" data-matomo-category="engagement" data-matomo-option="topics_breadcrumb" href="/topics/">Espace d'échanges</a> | ||
|
||
</li> | ||
|
||
|
||
</ol> | ||
</nav> | ||
''' | ||
# --- | ||
# name: TestBreadcrumb.test_grandchild_category_forum[grandchild_category_forum] | ||
''' | ||
<nav aria-label="Fil d'ariane" class="c-breadcrumb"> | ||
<ol class="breadcrumb"> | ||
<li class="breadcrumb-item">Retourner vers</li> | ||
<li class="breadcrumb-item"> | ||
|
||
<a class="matomo-event" data-matomo-action="view" data-matomo-category="engagement" data-matomo-option="documentation_breadcrumb" href="/documentation/">Documentation</a> | ||
|
||
</li> | ||
|
||
|
||
<li class="breadcrumb-item"> | ||
<a class="matomo-event" data-matomo-action="view" data-matomo-category="engagement" data-matomo-option="forum" href="/forum/b-category-[PK of Forum]/">B Category</a> | ||
</li> | ||
|
||
|
||
|
||
<li class="breadcrumb-item"> | ||
<a class="matomo-event" data-matomo-action="view" data-matomo-category="engagement" data-matomo-option="forum" href="/forum/b-category-forum-[PK of Forum]/">B Category - Forum</a> | ||
</li> | ||
|
||
|
||
|
||
</ol> | ||
</nav> | ||
''' | ||
# --- | ||
# name: TestBreadcrumb.test_newsfeed_forum[newsfeed_forum] | ||
''' | ||
<nav aria-label="Fil d'ariane" class="c-breadcrumb"> | ||
<ol class="breadcrumb"> | ||
<li class="breadcrumb-item">Retourner vers</li> | ||
<li class="breadcrumb-item"> | ||
|
||
<a class="matomo-event" data-matomo-action="view" data-matomo-category="engagement" data-matomo-option="newsfeed_breadcrumb" href="/news/">Actualités</a> | ||
|
||
</li> | ||
|
||
|
||
</ol> | ||
</nav> | ||
''' | ||
# --- | ||
# name: TestBreadcrumb.test_sub_discussion_area_forum[sub_discussion_area_forum] | ||
''' | ||
<nav aria-label="Fil d'ariane" class="c-breadcrumb"> | ||
<ol class="breadcrumb"> | ||
<li class="breadcrumb-item">Retourner vers</li> | ||
<li class="breadcrumb-item"> | ||
|
||
<a class="matomo-event" data-matomo-action="view" data-matomo-category="engagement" data-matomo-option="topics_breadcrumb" href="/topics/">Espace d'échanges</a> | ||
|
||
</li> | ||
|
||
|
||
|
||
|
||
</ol> | ||
</nav> | ||
''' | ||
# --- | ||
# name: TestBreadcrumb.test_sub_forum[sub_forum] | ||
''' | ||
<nav aria-label="Fil d'ariane" class="c-breadcrumb"> | ||
<ol class="breadcrumb"> | ||
<li class="breadcrumb-item">Retourner vers</li> | ||
<li class="breadcrumb-item"> | ||
|
||
<a class="matomo-event" data-matomo-action="view" data-matomo-category="engagement" data-matomo-option="topics_breadcrumb" href="/topics/">Espace d'échanges</a> | ||
|
||
</li> | ||
|
||
|
||
<li class="breadcrumb-item"> | ||
<a class="matomo-event" data-matomo-action="view" data-matomo-category="engagement" data-matomo-option="forum" href="/forum/b-forum-[PK of Forum]/">B Forum</a> | ||
</li> | ||
|
||
|
||
|
||
</ol> | ||
</nav> | ||
''' | ||
# --- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.