-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
10 changes: 5 additions & 5 deletions
10
network-api/networkapi/templates/tags/multipage_menu_link_note.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |