Skip to content

Commit

Permalink
Print information field for the service channel card if there is any
Browse files Browse the repository at this point in the history
  • Loading branch information
teroelonen committed Mar 1, 2024
1 parent ba0bbf8 commit 7b95fb2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions templates/module/helfi_tpr/tpr-service-channel.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
</{{ service_channel_heading_level }}>
{% endif %}

{% if content.information|render %}
<div class="service-channel__information">{{ content.information }}</div>
{% endif %}

{% if content.availability_summary|render %}
<div class="service-channel__availabilities">{{ content.availability_summary }}</div>
{% endif %}
Expand Down Expand Up @@ -67,12 +71,12 @@
<div class="service-channel__address">{{ content.address }}</div>
{% endif %}

{% if entity.requires_authentication.value == 1 or service_channel_eservice_links_new_tab %}
{% if entity.requires_authentication.value == 1 or (content.links and service_channel_eservice_links_new_tab and entity.type.value|lower == 'eservice') %}
<div class="service-channel__extra-information">
{% if entity.requires_authentication.value == 1 %}
{{ 'Requires authentication'|t }}.
{% endif %}
{% if content.links and service_channel_eservice_links_new_tab and entity.type.value|lower == 'eservice' %}
{% if content.links and service_channel_eservice_links_new_tab and entity.type.value|lower == 'eservice' %}
{{ 'The link opens in a new tab'|t({}, {'context': 'Explanation for users that the link opens in a new tab instead of the expected current tab'}) }}.
{% endif %}
</div>
Expand Down

0 comments on commit 7b95fb2

Please sign in to comment.