Rename ShellUser.menu to profileLinks, so menu keeps one meaning in the shell
This commit was merged in pull request #220.
This commit is contained in:
@@ -71,7 +71,7 @@
|
||||
</button>
|
||||
<div id="profile-menu" class="menu-pop left up" popover style="min-width:220px">
|
||||
<div class="menu-head"><%= t("shell.signedInAs", { name: user.name }) %></div>
|
||||
<% (user.menu || []).forEach((link) => { %>
|
||||
<% (user.profileLinks || []).forEach((link) => { %>
|
||||
<a class="menu-item" href="<%= link.href %>"><% if (link.icon) { %><svg class="ico"><use href="#<%= link.icon %>" /></svg><% } %><%= link.label %></a>
|
||||
<% }) %>
|
||||
<%# Sign out is a state change → a POST form (not a GET link), CSRF-guarded by app.ts %>
|
||||
|
||||
Reference in New Issue
Block a user