Skip to content

Commit

Permalink
Merge pull request #799 from MTES-MCT/feature/769-bo---entreprises-in…
Browse files Browse the repository at this point in the history
…tgrer-faq-tuto

[BO - Entreprises] Intégrer lien vers FAQ
  • Loading branch information
sfinx13 authored Oct 1, 2024
2 parents c01c5fe + a8b4df8 commit c31ee53
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/packages/twig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ twig:
feature_three_forms: '%feature_three_forms%'
platform:
url: '%base_url%'
gitbook:
faq: https://faq.stop-punaises.gouv.fr/

when@dev:
twig:
Expand Down
7 changes: 7 additions & 0 deletions templates/common/header-back.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@
<a class="fr-nav__link" href="{{ path('app_entreprise_list') }}" target="_self" {% if app.request.get('_route') == 'app_entreprise_list' or app.request.get('_route') == 'app_entreprise_view' %}aria-current="page"{% endif %}>Les entreprises</a>
</li>
{% endif %}

{% if gitbook is defined %}
<li class="fr-nav__item">
<a class="fr-nav__link" href="{{ gitbook.faq }}" target="_blank" rel="noopener"
>Documentation</a>
</li>
{% endif %}
</ul>
</nav>
</div>
Expand Down

0 comments on commit c31ee53

Please sign in to comment.