- Timestamp:
- 06/14/2026 04:17:14 PM (3 months ago)
- Branches:
- main
- Children:
- 640b39c
- Parents:
- ccbd6a6
- Location:
- src/views
- Files:
-
- 1 added
- 3 edited
-
pages/admin-comments.ejs (modified) (2 diffs)
-
pages/hub-home.ejs (modified) (1 diff)
-
pages/my-site.ejs (added)
-
partials/topnav.ejs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/views/pages/admin-comments.ejs
rccbd6a6 r8cb1dc7 26 26 <strong><%= c.author_username %></strong> 27 27 <% if (c.parent_comment_id) { %><span class="muted">(reply)</span><% } %> 28 on <a href=" /<%= c.post_slug %>"><%= c.post_title || c.post_slug %></a>28 on <a href="<%= siteUrlBase %>/<%= c.post_slug %>"><%= c.post_title || c.post_slug %></a> 29 29 <span class="muted">· <%= formatDateTime(c.created_at) %></span> 30 30 </div> 31 31 <blockquote class="moderation-content"><%= c.content %></blockquote> 32 32 <div class="moderation-actions"> 33 <form method="post" action=" /admin/comments/<%= c.id %>/approve" style="display:inline">33 <form method="post" action="<%= siteUrlBase %>/admin/comments/<%= c.id %>/approve" style="display:inline"> 34 34 <button type="submit" class="btn btn-primary">Approve</button> 35 35 </form> 36 <form method="post" action=" /admin/comments/<%= c.id %>/reject" style="display:inline">36 <form method="post" action="<%= siteUrlBase %>/admin/comments/<%= c.id %>/reject" style="display:inline"> 37 37 <button type="submit" class="btn btn-danger">Reject</button> 38 38 </form> … … 55 55 <tr class="status-<%= c.status %>"> 56 56 <td><%= c.author_username %></td> 57 <td><a href=" /<%= c.post_slug %>"><%= c.post_title || c.post_slug %></a></td>57 <td><a href="<%= siteUrlBase %>/<%= c.post_slug %>"><%= c.post_title || c.post_slug %></a></td> 58 58 <td> 59 59 <span class="status-pill status-pill--<%= c.status %>"><%= c.status %></span> -
src/views/pages/hub-home.ejs
rccbd6a6 r8cb1dc7 5 5 <div class="hub-nav-inner container"> 6 6 <% if (user) { %> 7 <% if (user.role === 'god' || user.role === 'admin' ) { %>7 <% if (user.role === 'god' || user.role === 'admin' || (typeof userOwnsSite !== 'undefined' && userOwnsSite)) { %> 8 8 <a class="hub-nav-link" href="/admin">Beheer</a> 9 9 <% } %> -
src/views/partials/topnav.ejs
rccbd6a6 r8cb1dc7 109 109 <span>Account</span> 110 110 </a> 111 <% if (user.role === 'god' || user.role === 'admin' ) { %>111 <% if (user.role === 'god' || user.role === 'admin' || (typeof userOwnsSite !== 'undefined' && userOwnsSite)) { %> 112 112 <a href="/admin" role="menuitem" class="udi"> 113 113 <svg class="udi-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 3h7v7H3z"/><path d="M14 3h7v7h-7z"/><path d="M14 14h7v7h-7z"/><path d="M3 14h7v7H3z"/></svg> … … 116 116 <% } %> 117 117 <% if (_canPost) { %> 118 <a href=" /posts/new" role="menuitem" class="udi"119 hx-get=" /posts/new?partial=1" hx-target="#pcms-main" hx-swap="innerHTML"120 hx-push-url=" /posts/new" hx-indicator="#pcms-loading">118 <a href="<%= _siteUrlBase %>/posts/new" role="menuitem" class="udi" 119 hx-get="<%= _siteUrlBase %>/posts/new?partial=1" hx-target="#pcms-main" hx-swap="innerHTML" 120 hx-push-url="<%= _siteUrlBase %>/posts/new" hx-indicator="#pcms-loading"> 121 121 <svg class="udi-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 20h9"/><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4 12.5-12.5z"/></svg> 122 122 <span>Nieuwe post</span>
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)