Changeset 834bcc3 in Klonkt for src/views/pages/post.ejs
- Timestamp:
- 06/23/2026 06:14:27 PM (3 months ago)
- Branches:
- main
- Children:
- d774679
- Parents:
- bb42dfb
- File:
-
- 1 edited
-
src/views/pages/post.ejs (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/views/pages/post.ejs
rbb42dfb r834bcc3 1 1 <% 2 // In hub -mode is de site bereikbaar onder /user/<slug>; allesite-scoped links3 // (tag, edit, delete, comments) m oeten met die prefix anders vallen ze terug op4 // de primaire site → 404 / verkeerde site. In solo is_base = ''.2 // In hub mode the site is accessible under /user/<slug>; all site-scoped links 3 // (tag, edit, delete, comments) must carry that prefix otherwise they fall back 4 // to the primary site → 404 / wrong site. In solo mode _base = ''. 5 5 const _base = (typeof siteUrlBase !== 'undefined' && siteUrlBase) ? siteUrlBase : ''; 6 6 %> 7 7 <article class="container post-page"> 8 8 9 <%# Navigati e over ALLE posts — BOVEN de post (gedeeld partial). %>9 <%# Navigation across ALL posts — ABOVE the post (shared partial). %> 10 10 <%- include('../partials/post-nav', { newerPost: newerPost, olderPost: olderPost }) %> 11 11 … … 79 79 80 80 <% if (typeof currentPath === 'string' && currentPath && currentPath.indexOf('/' + post.slug) === 0) { %> 81 <% /* If the URL has ?pending=1, the previous submit landed in the queue */ %>81 <% /* If the URL has ?pending=1, the previous submit landed in the moderation queue */ %> 82 82 <% } %> 83 83 <script> … … 164 164 </div> 165 165 166 <%# Re ageren op een antwoord — landt (via resolvedParent op de167 server) in dezelfde thread, dus 1 niveau diep blijft behouden. %>166 <%# Replying to a reply — lands (via resolvedParent on the 167 server) in the same thread, so the 1-level depth is preserved. %> 168 168 <% if (user && canMutate) { %> 169 169 <form method="post" action="<%= _base %>/comments" class="comment-reply-form" hidden data-reply-form-for="<%= r.id %>"> … … 431 431 .comment-form button { align-self: flex-start; } 432 432 .comment-reply-form-actions { display: flex; gap: 0.5rem; } 433 /* Reply-formulier pas tonen NA klik op REPLY. De display:flex hierboven overschreef434 anders het [hidden]-attribuut → formulier stond altijdopen. */433 /* Show the reply form only AFTER clicking REPLY. The display:flex above would 434 otherwise override the [hidden] attribute → form was always open. */ 435 435 .comment-reply-form[hidden] { display: none; } 436 /* DELETE -knop zit in een <form>; display:contents laat 'm als directeflex-sibling437 van REPLY meedoen → pixel-perfecte uitlijning + gelijkegap. */436 /* DELETE button is inside a <form>; display:contents makes it a direct flex-sibling 437 of REPLY → pixel-perfect alignment + equal gap. */ 438 438 .comment-actions form { display: contents; } 439 439
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)