Changeset 44cf44d in Klonkt for src/views/pages


Ignore:
Timestamp:
06/17/2026 12:12:59 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
79bba6e
Parents:
3cd1aaa
Message:

Audio: Admin/Account navigation via htmx (player stays alive, no jumping)

User-menu (topnav) + hub-home Admin/Account links now use htmx ?partial=1
→ the admin/account page loads into #pcms-main + OOB-chrome (admin
variant), while the audio player in document.body stays alive. Admin pages
have no DOMContentLoaded scripts (IIFEs) so they work via htmx. Logout
remains a full page load.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/hub-home.ejs

    r3cd1aaa r44cf44d  
    66      <% if (user) { %>
    77        <% if (typeof canSeeBeheer !== 'undefined' && canSeeBeheer) { %>
    8           <a class="hub-nav-link" href="/admin">Beheer</a>
     8          <a class="hub-nav-link" href="/admin"
     9             hx-get="/admin?partial=1" hx-target="#pcms-main" hx-swap="innerHTML"
     10             hx-push-url="/admin" hx-indicator="#pcms-loading">Beheer</a>
    911        <% } %>
    10         <a class="hub-nav-link" href="/account"><%= user.username %></a>
     12        <a class="hub-nav-link" href="/account"
     13           hx-get="/account?partial=1" hx-target="#pcms-main" hx-swap="innerHTML"
     14           hx-push-url="/account" hx-indicator="#pcms-loading"><%= user.username %></a>
    1115        <a class="hub-nav-link" href="/auth/logout">Uitloggen</a>
    1216      <% } else { %>
Note: See TracChangeset for help on using the changeset viewer.