Changeset 746d98a in Klonkt for src/views/partials/profile-header.ejs
- Timestamp:
- 09/30/2026 09:08:48 AM (2 hours ago)
- Branches:
- main
- Parents:
- 31680c3
- File:
-
- 1 edited
-
src/views/partials/profile-header.ejs (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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). %>
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)