Skip to content

Commit

Permalink
Merge pull request #931 from City-of-Helsinki/UHF-9562-unit-email-field
Browse files Browse the repository at this point in the history
UHF-9562: Add email to template
  • Loading branch information
hyrsky authored Mar 26, 2024
2 parents b55513e + 5bd741d commit 8687ecf
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,13 @@
{% endif %}
</div>
{% endif %}
{% if unit_email_link and content.email|render %}
{% set link_attributes = {
'class': [
'service-channel__email-link',
],
} %}
{% if content.email|render %}
<div class="unit__contact-row unit__contact-row--email">
<label class="unit__contact-row__label">
{% include '@hdbt/misc/icon.twig' ignore missing with {icon: 'glyph-at'} %}
{{ 'E-mail'|t }}:
</label>
{{ link(content.email, unit_email_link, link_attributes) }}
{{ content.email }}
</div>
{% endif %}
{% if content.phone|render %}
Expand Down

0 comments on commit 8687ecf

Please sign in to comment.