Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Sympa
Commits
6dbde910
Unverified
Commit
6dbde910
authored
May 08, 2022
by
Stefan Hornburg (Racke)
Browse files
Remove user menu entries showing only information (#1393).
parent
295ec7ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
default/web_tt2/user_menu.tt2
View file @
6dbde910
...
...
@@ -5,60 +5,6 @@
</li>
[%~ END %]
[% IF top_menu ~%]
[%# Note: When is_listmaster is set, is_privileged_owner is also set. ~%]
[% SET owner_item = owner.item(user.email) ~%]
[% SET editor_item = editor.item(user.email) ~%]
[% IF is_listmaster || owner_item || is_editor || is_subscriber ~%]
<li class="nolink role">
<span>
[%# Show picture and higher privilege of user on this list. ~%]
[%~ IF is_subscriber && pictures_display && pictures_url ~%]
<img class="Pictures" src="[% pictures_url %]" alt="[%|loc%]Your picture[%END%]" />
[%~ ELSIF owner_item || is_editor || is_subscriber ~%]
<i class="fa fa-user"></i>
[%~ END %]
[%~ IF is_listmaster ~%]
<i class="fa fa-star" style="color: #669900;" title="[%|loc%]You are listmaster.[%END%]"></i>
[%~ ELSIF owner_item ~%]
<i class="fa fa-star" title="[%|loc%]You are owner.[%END%]"></i>
[%~ ELSIF is_editor ~%]
<i class="fa fa-star-o" title="[%|loc%]You are moderator.[%END%]"></i>
[%~ END %]
[%# Show roles on this list. ~%]
[%~ IF is_listmaster ~%]
[%|loc%]Listmaster[%END%]
[%~ IF owner_item || is_editor || is_subscriber %]
[%|loc%], [%END%]
[% END %]
[%~ END %]
[%~ IF owner_item || is_editor ~%]
[%~ IF is_privileged_owner ~%]
[%|loc%]Privileged owner[%END%]
[%~ IF is_subscriber %]
[%|loc%], [%END%]
[% END %]
[%~ ELSIF is_owner ~%]
[%|loc%]Owner[%END%]
[%~ IF is_subscriber %]
[%|loc%], [%END%]
[% END %]
[%~ ELSIF is_editor ~%]
[%|loc%]Moderator[%END%]
[%~ IF is_subscriber %]
[%|loc%], [%END%]
[% END %]
[%~ END %]
[%~ END %]
[%~ IF is_subscriber ~%]
[%|loc%]Subscriber[%END%]
[%~ END %]
</span>
</li>
[%~ END %]
[%~ END %]
[% IF restore_email ~%]
<li>
<form action="[% path_cgi %]" method="post">
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment