Changeset 0c2228a in Klonkt for src/views/partials


Ignore:
Timestamp:
06/14/2026 05:10:16 PM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
7963a6e
Parents:
05a6ca0
Message:

hub: home button actually visible + delete for every user (cascade)

  • topnav: the hub-home brand used .site-title, which is display:none everywhere (the profile header carries the name). Now its own visible class .nav-hub-home -> the hub name is truly shown top-left on /user/ pages, linking to the hub home.
  • admin/users: delete button for EVERY user (except yourself), not only empty accounts. Deletion cascades (sites + posts + playlists + audio + members + comments) atomically in a transaction; god-only, not the last god, not yourself. Confirmation warns when content will be removed.

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

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

    r05a6ca0 r0c2228a  
    2828      <% } else if (typeof tenancy !== 'undefined' && tenancy === 'hub') { %>
    2929        <%# Hub: de brand is de hub-naam en gaat naar de hub-home (volledige nav, geen
    30             HTMX, zodat de headerloze overview correct rendert). %>
    31         <a class="site-title" href="/" aria-label="Naar de hub-home"><%= (typeof hubTitle !== 'undefined' && hubTitle) ? hubTitle : 'Home' %></a>
     30            HTMX, zodat de headerloze overview correct rendert). Eigen class want
     31            .site-title is overal display:none. %>
     32        <a class="nav-hub-home" href="/" aria-label="Naar de hub-home"><%= (typeof hubTitle !== 'undefined' && hubTitle) ? hubTitle : 'Home' %></a>
    3233      <% } else if (site) { %>
    3334        <a class="site-title" href="<%= _siteUrlBase %>/"
     
    232233}
    233234
     235/* Hub-home brand is WÉL zichtbaar — de thuisknop op artiest-/hub-pagina's. */
     236.masthead-brand .nav-hub-home {
     237  display: inline-block; vertical-align: middle;
     238  color: var(--ink); text-decoration: none;
     239  font-family: var(--font-display, serif); font-weight: 700; font-size: 1.05rem;
     240  transition: color 120ms;
     241}
     242.masthead-brand .nav-hub-home:hover { color: var(--accent); }
     243
    234244/* On mobile, hide the entire masthead except for admin pages. The brand
    235245   appears in the profile-header on content pages, and the bottom-tab
Note: See TracChangeset for help on using the changeset viewer.