Changeset a742e9f in Klonkt


Ignore:
Timestamp:
06/16/2026 04:16:33 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
bdc3c1e
Parents:
5f43245
Message:

Fix: top-nav profile menu shows 'God' for the god role instead of misleading 'Admin'

A god account got the hardcoded badge "Admin" in the profile dropdown,
which is confusing (looks like the role is admin instead of god). Now shows
"God".

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/partials/topnav.ejs

    r5f43245 ra742e9f  
    106106                <span class="udh-name"><%= user.username %></span>
    107107                <% if (user.role === 'god') { %>
    108                   <span class="udh-role">Admin</span>
     108                  <span class="udh-role">God</span>
    109109                <% } else if (user.role === 'admin' || user.role === 'moderator') { %>
    110110                  <span class="udh-role"><%= user.role.charAt(0).toUpperCase() + user.role.slice(1) %></span>
Note: See TracChangeset for help on using the changeset viewer.