Skip to content

Commit

Permalink
add link faq #769
Browse files Browse the repository at this point in the history
  • Loading branch information
hmeneuvrier committed Oct 1, 2024
1 parent c01c5fe commit a8b4df8
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 a8b4df8

Please sign in to comment.