Make admin know they're admin

This commit is contained in:
Eugene Burmakin 2024-07-19 21:02:04 +02:00
parent 9c2d2b8c02
commit 1fb80ac6f6
2 changed files with 4 additions and 1 deletions

File diff suppressed because one or more lines are too long

View file

@ -85,6 +85,9 @@
<details>
<summary>
<%= "#{current_user.email}" %>
<% if current_user.admin? %>
<span class='tooltip tooltip-bottom' data-tip="You're an admin, Harry!">⭐️</span>
<% end %>
</summary>
<ul class="p-2 bg-base-100 rounded-t-none z-10">
<li><%= link_to 'Account', edit_user_registration_path %></li>