thonon-agglomeration-2021: add a custom link to custom-logo (#66769)

to go to specifique url wich comes from card
This commit is contained in:
Thomas Jund 2022-07-06 18:10:28 +02:00
parent 13227ec276
commit c8b56b2530
1 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,9 @@
{% load gadjo static staticfiles %}
{% with commune_card|get:'home_path' as commune_home_path %}
<h1 id="custom-logo" class="custom-logo">
<a accesskey="1" href="{% firstof logo_link_url portal_url '/' %}">
<a accesskey="1" href="{% firstof portal_url|add:commune_home_path logo_link_url portal_url '/' %}">
<img src="{{portal_url}}assets/commune:logo:{{commune_card|get:'code'}}" alt="{{ commune_card|get:'nom' }}">
</a>
</h1>
{% endwith %}