Changeset 8afbdd6 in Klonkt for src/views/partials
- Timestamp:
- 06/14/2026 06:07:51 PM (3 months ago)
- Branches:
- main
- Children:
- c869272
- Parents:
- b94c08e
- Location:
- src/views/partials
- Files:
-
- 4 edited
-
bottom-tab.ejs (modified) (1 diff)
-
footer.ejs (modified) (1 diff)
-
profile-sheet.ejs (modified) (1 diff)
-
topnav.ejs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/views/partials/bottom-tab.ejs
rb94c08e r8afbdd6 11 11 const _siteUrlBase = (typeof siteUrlBase !== 'undefined' && siteUrlBase) ? siteUrlBase : ''; 12 12 const _path = (typeof currentPath !== 'undefined' && currentPath) ? currentPath : '/'; 13 const _canPost = !!(user && permissions && permissions.canCreatePost && permissions.canCreatePost(user, site)); 13 const _canPost = !!(user && (typeof canMutate === 'undefined' || canMutate) 14 && permissions && permissions.canCreatePost && permissions.canCreatePost(user, site)); 14 15 const _hasPrutter = !!(user && site && site.enable_prutter && (typeof tenancy !== 'undefined' && tenancy === 'hub')); 15 16 const _ownProfile = user ? ('/users/' + user.username) : null; -
src/views/partials/footer.ejs
rb94c08e r8afbdd6 2 2 <div class="container site-footer-inner"> 3 3 <div> 4 <span>© <%= new Date().getFullYear() %> <%= (site && site.title) || ' PrutFolio' %></span>4 <span>© <%= new Date().getFullYear() %> <%= (site && site.title) || 'Klonkt' %></span> 5 5 </div> 6 6 <div class="footer-meta"> 7 <span> PrutFolio v1</span>7 <span>Klonkt Hub Beta</span> 8 8 <%# Mobile-only theme toggle. On desktop the topnav has its own toggle 9 9 so we hide this one to avoid two visible toggles at once. The same -
src/views/partials/profile-sheet.ejs
rb94c08e r8afbdd6 14 14 15 15 const _isAdmin = (user.role === 'god' || user.role === 'admin'); 16 const _canPost = !!(typeof permissions !== 'undefined' 16 const _canPost = !!((typeof canMutate === 'undefined' || canMutate) 17 && typeof permissions !== 'undefined' 17 18 && permissions 18 19 && permissions.canCreatePost -
src/views/partials/topnav.ejs
rb94c08e r8afbdd6 16 16 const _hasSearch = !site || site.show_search === undefined || site.show_search; 17 17 const _hasPrutter = user && site && site.enable_prutter && (typeof tenancy !== 'undefined' && tenancy === 'hub'); 18 const _canPost = user && permissions && permissions.canCreatePost && permissions.canCreatePost(user, site); 18 const _canPost = user && (typeof canMutate === 'undefined' || canMutate) 19 && permissions && permissions.canCreatePost && permissions.canCreatePost(user, site); 19 20 %> 20 21 … … 36 37 hx-push-url="<%= _siteUrlBase %>/" hx-indicator="#pcms-loading"><%= site.title %></a> 37 38 <% } else { %> 38 <a class="site-title" href="/"> PrutFolio</a>39 <a class="site-title" href="/">Klonkt</a> 39 40 <% } %> 40 41 </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)