Changeset 4dcefa1 in Klonkt for src/views/partials/view-switcher.ejs
- Timestamp:
- 06/20/2026 08:11:45 AM (3 months ago)
- Branches:
- main
- Children:
- 1c6d61c
- Parents:
- 6eeb459
- File:
-
- 1 edited
-
src/views/partials/view-switcher.ejs (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/views/partials/view-switcher.ejs
r6eeb459 r4dcefa1 3 3 handlers are wired in shell.ejs via event-delegation on document so 4 4 HTMX-swapped content keeps working without rebinding. %> 5 <% 6 var _bc = (typeof bodyClass === 'string') ? bodyClass : ''; 7 var _onShows = _bc.indexOf('on-shows') >= 0; 8 // Pagina's zonder actieve feed-weergave → niets in de pill is 'actief' (Solo/Cirkel 9 // + Tijdlijn/Grid grijs). Alleen Agenda krijgt z'n eigen is-active op de agenda. 10 var _neutral = ['on-shows','on-downloads','on-post','on-epk','on-linkbio','on-newsletter','on-archive'] 11 .some(function(c){ return _bc.indexOf(c) >= 0; }); 12 %> 5 13 <div class="view-switcher-wrap"> 6 14 <div class="container"> … … 9 17 %> 10 18 <div class="agenda-pill"> 11 <a class="vs-agenda " href="<%= _sbA %>/shows" aria-label="Agenda — evenementen">19 <a class="vs-agenda<%= _onShows ? ' is-active' : '' %>" href="<%= _sbA %>/shows" aria-label="Agenda — evenementen"> 12 20 <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="18" rx="2"/><line x1="16" y1="2" x2="16" y2="6"/><line x1="8" y1="2" x2="8" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/></svg> 13 21 <span>Agenda</span> … … 20 28 %> 21 29 <div class="feed-scope" role="tablist" aria-label="Solo of cirkel"> 22 <a class="feed-scope-btn<%= _onCirkel ? '' : ' is-active' %>" href="<%= _sb %>/"23 role="tab" aria-selected="<%= _onCirkel ? 'false' : 'true' %>">Solo</a>24 <a class="feed-scope-btn<%= _onCirkel? ' is-active' : '' %>" href="<%= _sb %>/cirkel"25 role="tab" aria-selected="<%= _onCirkel? 'true' : 'false' %>">Cirkel</a>30 <a class="feed-scope-btn<%= (!_neutral && !_onCirkel) ? ' is-active' : '' %>" href="<%= _sb %>/" 31 role="tab" aria-selected="<%= (!_neutral && !_onCirkel) ? 'true' : 'false' %>">Solo</a> 32 <a class="feed-scope-btn<%= (!_neutral && _onCirkel) ? ' is-active' : '' %>" href="<%= _sb %>/cirkel" 33 role="tab" aria-selected="<%= (!_neutral && _onCirkel) ? 'true' : 'false' %>">Cirkel</a> 26 34 </div> 27 35 <% } %> … … 38 46 </button> 39 47 </div> 48 <% if (!_neutral) { %> 40 49 <div class="grid-cols-picker" aria-label="Aantal kolommen"> 41 50 <button type="button" class="grid-cols-btn" data-cols="2" title="2 kolommen">2</button> … … 43 52 <button type="button" class="grid-cols-btn" data-cols="4" title="4 kolommen">4</button> 44 53 </div> 54 <% } %> 45 55 </div> 46 56 </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)