Changeset 746d98a in Klonkt for src/views/partials
- Timestamp:
- 09/30/2026 09:08:48 AM (5 hours ago)
- Branches:
- main
- Parents:
- 31680c3
- Location:
- src/views/partials
- Files:
-
- 4 edited
-
bottom-tab.ejs (modified) (2 diffs)
-
chrome.ejs (modified) (1 diff)
-
profile-header.ejs (modified) (5 diffs)
-
topnav.ejs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/views/partials/bottom-tab.ejs
r31680c3 r746d98a 48 48 </a> 49 49 50 <!-- Zoek --> 50 <!-- Zoek (niet in de wardmodus: daar is zoeken dicht voor een bezoeker) --> 51 <% if (!(typeof wardProfile !== 'undefined' && wardProfile)) { %> 51 52 <button type="button" class="bottom-tab-item<%= _active === 'search' ? ' is-active' : '' %>" 52 53 id="bottom-tab-search-toggle" aria-label="<%= t('nav.search') %>"> … … 57 58 <span class="bottom-tab-label"><%= t('tab.search') %></span> 58 59 </button> 60 <% } %> 59 61 60 62 <!-- Plus (FAB-style, only when user can post) --> -
src/views/partials/chrome.ejs
r31680c3 r746d98a 34 34 <% if (!_headerless) { %> 35 35 <%- include('profile-header') %> 36 <% if (!_isAdmin && (typeof site !== 'undefined' && site)) { %><%- include('view-switcher') %><% } %> 36 <%# Niet in de wardmodus: een bezoeker ziet daar alleen het profiel, en er 37 is geen stroom om tussen Lezen en Grid te wisselen. %> 38 <% if (!_isAdmin && (typeof site !== 'undefined' && site) && !(typeof wardProfile !== 'undefined' && wardProfile)) { %><%- include('view-switcher') %><% } %> 37 39 <% } %> 38 40 <% } %> -
src/views/partials/profile-header.ejs
r31680c3 r746d98a 10 10 // Show profile-header unless we're on an admin page or the site explicitly 11 11 // disabled it via profile_enabled=0. 12 const _showProfile = site 13 && (site.profile_enabled === undefined || site.profile_enabled !== 0) 14 && !(typeof bodyClass !== 'undefined' && bodyClass.indexOf('on-admin') >= 0); 12 // In de wardmodus IS de pagina het profiel (pages/ward-profile.ejs). Dan valt de 13 // kop hier weg, maar de volgdialoog hieronder blijft: de volgknop op die pagina 14 // opent hem. 15 const _wardPage = typeof wardProfile !== 'undefined' && wardProfile; 16 const _showProfile = site && (_wardPage || ( 17 (site.profile_enabled === undefined || site.profile_enabled !== 0) 18 && !(typeof bodyClass !== 'undefined' && bodyClass.indexOf('on-admin') >= 0))); 15 19 16 20 // profile_name and profile_bio used to be optional overrides exposed in the … … 20 24 const _displayName = (site && (site.profile_name || site.title)) || ''; 21 25 const _bioText = (site && (site.profile_bio || site.description || site.tagline)) || ''; 26 // Volgen via de fediverse. Hier boven en niet in de kop: op de wardpagina valt 27 // de kop weg, maar de volgdialoog onderaan hoort er dan nog te staan. 28 const _showFollow = (typeof canManageFedi === 'undefined' || !canManageFedi) && site && site.slug && (typeof apEnabled === 'undefined' || apEnabled); 22 29 23 30 // Parse profile_links JSON column once. … … 38 45 39 46 <% if (_showProfile) { %> 47 <% if (!_wardPage) { %> 40 48 <aside class="profile-header" aria-label="Site profile"> 41 49 <div class="container profile-header-inner"> … … 74 82 <%# Follow-via-fediverse: a compact icon in the links row (keeps the header 75 83 short), and hidden for the owner — you don't follow yourself. %> 76 <% var _showFollow = (typeof canManageFedi === 'undefined' || !canManageFedi) && site && site.slug && (typeof apEnabled === 'undefined' || apEnabled); %>77 84 <% if (_profileLinks.length || _showFollow) { %> 78 85 <% const _platforms = (typeof platforms_catalog !== 'undefined' && platforms_catalog) || {}; %> … … 144 151 </div> 145 152 </div> 153 <% } /* !_wardPage */ %> 146 154 <% if (_showFollow) { %> 147 155 <%# Follow-via-fediverse modal — replaces the native prompt() (which looked ugly). %> -
src/views/partials/topnav.ejs
r31680c3 r746d98a 16 16 // Fediverse pages (on-special) get the same top-nav "back to site" treatment as admin. 17 17 const _isSpecial = typeof bodyClass !== 'undefined' && bodyClass.indexOf('on-special') >= 0; 18 const _hasSearch = !site || site.show_search === undefined || site.show_search; 18 // In de wardmodus is zoeken dicht voor een bezoeker: geen knop naar een deur op slot. 19 const _hasSearch = (!site || site.show_search === undefined || site.show_search) 20 && !(typeof wardProfile !== 'undefined' && wardProfile); 19 21 const _canPost = user && (typeof canMutate === 'undefined' || canMutate) 20 22 && permissions && permissions.canCreatePost && permissions.canCreatePost(user, site); … … 47 49 <nav class="top-nav top-nav-desktop" aria-label="Hoofdnavigatie"> 48 50 49 <% if (!_isAdmin && !_isSpecial) { %> 51 <%# Niet in de wardmodus: daar is het archief dicht voor een bezoeker. %> 52 <% if (!_isAdmin && !_isSpecial && !(typeof wardProfile !== 'undefined' && wardProfile)) { %> 50 53 <a class="nav-link" href="<%= _siteUrlBase %>/archive" 51 54 hx-get="<%= _siteUrlBase %>/archive?partial=1" hx-target="#pcms-main"
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)