Skip to content

Commit

Permalink
🎉 add a new button for admin user
Browse files Browse the repository at this point in the history
  • Loading branch information
songquanpeng committed Jan 17, 2021
1 parent 24c9723 commit d806ac6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions views/partials/nav.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
<div class="navbar-item">
<div class="buttons">
<% if (isLogged) { %>
<% if (isAdmin) { %>
<a class="button is-light" href="/register">添加新用户</a>
<% } %>
<a class="button is-light" href="/configure">配置</a>
<a class="button is-light" href="/logout">退出</a>
<% } else { %>
Expand Down

0 comments on commit d806ac6

Please sign in to comment.