Changeset 2cc887b in Klonkt
- Timestamp:
- 06/14/2026 08:33:10 AM (3 months ago)
- Branches:
- main
- Children:
- 52215bc
- Parents:
- 8b014ef
- Location:
- src
- Files:
-
- 4 edited
-
middleware/render.js (modified) (1 diff)
-
views/pages/admin.ejs (modified) (1 diff)
-
views/partials/bottom-tab.ejs (modified) (1 diff)
-
views/partials/topnav.ejs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/middleware/render.js
r8b014ef r2cc887b 42 42 audioTracks: data.audioTracks || res.locals.audioTracks || [], 43 43 siteUrlBase: res.locals.siteUrlBase || '', 44 tenancy: res.locals.tenancy || 'solo', 44 45 platforms_catalog: PLATFORMS_CATALOG, 45 46 permissions: PermissionsService, -
src/views/pages/admin.ejs
r8b014ef r2cc887b 22 22 <a href="/admin/sites/<%= primarySite.slug %>/edit" class="btn">🎨 Uiterlijk</a> 23 23 <% } %> 24 <a href="/account" class="btn">👤 Account</a>25 24 <a href="/admin/settings" class="btn">⚙️ Instellingen</a> 26 25 <% } %> -
src/views/partials/bottom-tab.ejs
r8b014ef r2cc887b 12 12 const _path = (typeof currentPath !== 'undefined' && currentPath) ? currentPath : '/'; 13 13 const _canPost = !!(user && permissions && permissions.canCreatePost && permissions.canCreatePost(user, site)); 14 const _hasPrutter = !!(user && site && site.enable_prutter );14 const _hasPrutter = !!(user && site && site.enable_prutter && (typeof tenancy !== 'undefined' && tenancy === 'hub')); 15 15 const _ownProfile = user ? ('/users/' + user.username) : null; 16 16 -
src/views/partials/topnav.ejs
r8b014ef r2cc887b 15 15 const _isAdmin = typeof bodyClass !== 'undefined' && bodyClass.indexOf('on-admin') >= 0; 16 16 const _hasSearch = !site || site.show_search === undefined || site.show_search; 17 const _hasPrutter = user && site && site.enable_prutter ;17 const _hasPrutter = user && site && site.enable_prutter && (typeof tenancy !== 'undefined' && tenancy === 'hub'); 18 18 const _canPost = user && permissions && permissions.canCreatePost && permissions.canCreatePost(user, site); 19 19 %>
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)