Skip to content

Commit

Permalink
Unwrapped text from trans tag
Browse files Browse the repository at this point in the history
  • Loading branch information
mmmavis authored Aug 28, 2024
1 parent a0b72ea commit 6bc1041
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{% load i18n %}

{% with class="tw-text-red-80 tw-text-sm tw-ml-1" note_for_translators="This note is internal facing only and is only visible to our CMS logged in users." %}
{% with class="tw-text-red-80 tw-text-sm tw-ml-1" %}
{% comment %}These notes are internal facing only. Only logged in users can see them.{% endcomment %}

{% if menu_entry.restriction == "login" %}
<span class="{{ class }}">{% trans "(logged in users only)" context note_for_translators %}</span>
<span class="{{ class }}">(logged in users only)</span>
{% elif menu_entry.restriction == "groups" %}
<span class="{{ class }}">{% trans "(restricted to specific groups)" context note_for_translators %}</span>
<span class="{{ class }}">(restricted to specific groups)</span>
{% elif menu_entry.restriction == "password" %}
<span class="{{ class }}">{% trans "(password protected)" context note_for_translators %}</span>
<span class="{{ class }}">(password protected)</span>
{% endif %}

{% if not menu_entry.page.live %}
<span class="{{ class }}">{% trans "(draft)" context note_for_translators %}</span>
<span class="{{ class }}">(draft)</span>
{% endif %}

{% endwith %}

0 comments on commit 6bc1041

Please sign in to comment.