-
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.
Replaced emoji for special page nav link with text (#12728)
* Replaced emoji for special page nav link with text * Created a template fragment to render notes for menu link to special page
- Loading branch information
Showing
4 changed files
with
20 additions
and
18 deletions.
There are no files selected for viewing
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
18 changes: 18 additions & 0 deletions
18
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{% load i18n %} | ||
|
||
{% 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 }}">(logged in users only)</span> | ||
{% elif menu_entry.restriction == "groups" %} | ||
<span class="{{ class }}">(restricted to specific groups)</span> | ||
{% elif menu_entry.restriction == "password" %} | ||
<span class="{{ class }}">(password protected)</span> | ||
{% endif %} | ||
|
||
{% if not menu_entry.page.live %} | ||
<span class="{{ class }}">(draft)</span> | ||
{% endif %} | ||
|
||
{% endwith %} |
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
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