Skip to content

Commit

Permalink
Merge pull request #535 from MTES-MCT/feature/faq
Browse files Browse the repository at this point in the history
Haie / Ajouter entrée "Questions fréquentes" dans le menu
  • Loading branch information
pyDez authored Jan 29, 2025
2 parents d1ae8cb + 34c2003 commit 1b5ca14
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
2 changes: 2 additions & 0 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,3 +435,5 @@
"amenagement": "[email protected]",
"haie": "[email protected]",
}

HAIE_FAQ_URL = "https://www.notion.so/Guichet-unique-de-la-haie-propos-17afe5fe476680a9abe6c4bdf5301abb"
6 changes: 6 additions & 0 deletions envergo/templates/haie/_header.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@
<ul class="fr-nav__list">
<li class="fr-nav__item">{% menu_item 'home' "Accueil" %}</li>
<li class="fr-nav__item">{% pilote_departments_menu %}</li>
<li class="fr-nav__item">
<a class="fr-nav__link"
href="{{ HAIE_FAQ_URL }}"
target="_blank"
rel="noopener external">Questions fréquentes</a>
</li>
</ul>
</nav>
</div>
Expand Down
6 changes: 4 additions & 2 deletions envergo/templates/haie/_slim_header.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@
<div class="fr-header__tools-links">
<ul class="fr-btns-group">
<li>
<div class="fr-btn">&nbsp;</div>
<a class="fr-btn"
href="{{ HAIE_FAQ_URL }}"
target="_blank"
rel="noopener external">Questions fréquentes</a>
</li>
<!-- This blank entry enforces the correct height -->
</ul>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions envergo/utils/context_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def settings_context(_request):
"ENV_NAME": settings.ENV_NAME,
"CRISP_CHATBOX_ENABLED": chatbox_enabled,
"CRISP_WEBSITE_ID": crisp_website_id,
"HAIE_FAQ_URL": settings.HAIE_FAQ_URL,
}


Expand Down

0 comments on commit 1b5ca14

Please sign in to comment.