Changeset 79bba6e in Klonkt for src/views/partials/chrome.ejs
- Timestamp:
- 06/17/2026 12:29:16 AM (3 months ago)
- Branches:
- main
- Children:
- cbd1761
- Parents:
- 44cf44d
- File:
-
- 1 edited
-
src/views/partials/chrome.ejs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/views/partials/chrome.ejs
r44cf44d r79bba6e 8 8 // 9 9 // Wordt zowel door shell.ejs (oob niet gezet) als door render.js bij partials 10 // (oob=true) gerenderd. bareChrome-logica staat hier zodat beide identiek zijn. 11 var _isAdmin = typeof bodyClass === 'string' && bodyClass.indexOf('on-admin') >= 0; 12 var bareChrome = (typeof bodyClass === 'string' && (bodyClass.indexOf('on-hub') >= 0 || bodyClass.indexOf('on-auth') >= 0)) 10 // (oob=true) gerenderd. De logica staat hier zodat beide identiek zijn. 11 // 12 // _isAuth → focus-scherm (in/uitloggen): helemaal geen chrome. 13 // _headerless → hub-homepagina én de Prutter-chat: WÉL de mini topnav-balk, 14 // GEEN profielkop (hub: hero = header; chat: full-height view). 15 // anders → topnav + profielkop (+ view-switcher buiten admin). 16 var _isAdmin = typeof bodyClass === 'string' && bodyClass.indexOf('on-admin') >= 0; 17 var _isAuth = typeof bodyClass === 'string' && bodyClass.indexOf('on-auth') >= 0; 18 var _isChat = typeof bodyClass === 'string' && bodyClass.indexOf('on-chat') >= 0; 19 var hubLanding = (typeof bodyClass === 'string' && bodyClass.indexOf('on-hub') >= 0) 13 20 || ((typeof tenancy !== 'undefined' && tenancy === 'hub') && !siteUrlBase && !_isAdmin); 21 var _headerless = hubLanding || _isChat; 14 22 %> 15 23 <div id="pcms-chrome"<% if (typeof oob !== 'undefined' && oob) { %> hx-swap-oob="true"<% } %>> 16 <% if (! bareChrome) { %>24 <% if (!_isAuth) { %> 17 25 <%- include('topnav') %> 18 <%- include('profile-header') %> 19 <% if (!_isAdmin) { %><%- include('view-switcher') %><% } %> 26 <% if (!_headerless) { %> 27 <%- include('profile-header') %> 28 <% if (!_isAdmin) { %><%- include('view-switcher') %><% } %> 29 <% } %> 20 30 <% } %> 21 31 </div>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)