Skip to content

Commit

Permalink
Do not render link if link text is empty in translations (which is th…
Browse files Browse the repository at this point in the history
…e default)
  • Loading branch information
thijskh committed Oct 16, 2023
1 parent 5ee1a30 commit 9681f38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
<main class="page__content">
{% include '@theme/Authentication/View/Proxy/Partials/Shared/site-notice.html.twig' with { className: 'notification__global-site-notice--logout' } %}
<p>{{ 'logout_description'|trans }}</p>
<p><a href="{{ 'logout_information_link_target'|trans }}">{{ 'logout_information_link_text'|trans }}</a></p>
{% if 'logout_information_link_text'|trans %}
<p><a href="{{ 'logout_information_link_target'|trans }}">{{ 'logout_information_link_text'|trans }}</a></p>
{% endif %}
</main>
</div>
{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
<h1>Logout</h1>
{% include '@theme/Authentication/View/Proxy/site-notice.html.twig' with { className: 'full-width' } %}
<p>{{ 'logout_description'|trans }}</p>
<p><a href="{{ 'logout_information_link_target'|trans }}">{{ 'logout_information_link_text'|trans }}</a></p>
{% if 'logout_information_link_text'|trans %}
<p><a href="{{ 'logout_information_link_target'|trans }}">{{ 'logout_information_link_text'|trans }}</a></p>
{% endif %}
</div>
</div>
{% endblock %}

0 comments on commit 9681f38

Please sign in to comment.