Changeset bbf9d1a in Klonkt for src/views/pages/admin-comments.ejs
- Timestamp:
- 06/21/2026 02:32:39 PM (3 months ago)
- Branches:
- main
- Children:
- 4885eab
- Parents:
- 929d98d
- File:
-
- 1 edited
-
src/views/pages/admin-comments.ejs (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/views/pages/admin-comments.ejs
r929d98d rbbf9d1a 1 1 <div class="container admin-comments-page"> 2 <p><a href="/admin" class="btn">← Beheer</a></p>3 <h1> Comment moderation</h1>2 <p><a href="/admin" class="btn">← <%= t('acom.back') %></a></p> 3 <h1><%= t('acom.title') %></h1> 4 4 5 5 <p class="muted"> 6 Mode for this site:<strong><%= moderationMode %></strong>6 <%= t('acom.mode_for_site') %> <strong><%= moderationMode %></strong> 7 7 <% if (moderationMode === 'trust') { %> 8 — comments are auto-approved. Switch to <em>moderate</em> in9 <a href="/admin/sites/<%= site.slug %>/edit"> site settings</a> to queue them.8 — <%= t('acom.mode_trust_a') %> <em><%= t('acom.mode_moderate_word') %></em> 9 <a href="/admin/sites/<%= site.slug %>/edit"><%= t('acom.site_settings') %></a> <%= t('acom.mode_trust_b') %> 10 10 <% } else { %> 11 — new comments require approval before showing up on posts.11 — <%= t('acom.mode_moderate_hint') %> 12 12 <% } %> 13 13 </p> … … 16 16 <% if (error) { %><div class="audio-flash audio-flash--err"><%= error %></div><% } %> 17 17 18 <h2> Pending (<%= pending.length %>)</h2>18 <h2><%= t('acom.pending', { n: pending.length }) %></h2> 19 19 <% if (!pending.length) { %> 20 <p class="muted"> Nothing waiting.</p>20 <p class="muted"><%= t('acom.nothing_waiting') %></p> 21 21 <% } else { %> 22 <% 23 var _c_reply = t('acom.reply'); 24 var _c_on = t('acom.on'); 25 var _c_approve = t('acom.approve'); 26 var _c_reject = t('acom.reject'); 27 %> 22 28 <ol class="moderation-list"> 23 29 <% pending.forEach(function(c) { %> … … 25 31 <div class="moderation-meta"> 26 32 <strong><%= c.author_username %></strong> 27 <% if (c.parent_comment_id) { %><span class="muted">( reply)</span><% } %>28 on<a href="<%= siteUrlBase %>/<%= c.post_slug %>"><%= c.post_title || c.post_slug %></a>33 <% if (c.parent_comment_id) { %><span class="muted">(<%= _c_reply %>)</span><% } %> 34 <%= _c_on %> <a href="<%= siteUrlBase %>/<%= c.post_slug %>"><%= c.post_title || c.post_slug %></a> 29 35 <span class="muted">· <%= formatDateTime(c.created_at) %></span> 30 36 </div> … … 32 38 <div class="moderation-actions"> 33 39 <form method="post" action="<%= siteUrlBase %>/admin/comments/<%= c.id %>/approve" style="display:inline"> 34 <button type="submit" class="btn btn-primary"> Approve</button>40 <button type="submit" class="btn btn-primary"><%= _c_approve %></button> 35 41 </form> 36 42 <form method="post" action="<%= siteUrlBase %>/admin/comments/<%= c.id %>/reject" style="display:inline"> 37 <button type="submit" class="btn btn-danger"> Reject</button>43 <button type="submit" class="btn btn-danger"><%= _c_reject %></button> 38 44 </form> 39 45 </div> … … 43 49 <% } %> 44 50 45 <h2> Recent decisions</h2>51 <h2><%= t('acom.recent') %></h2> 46 52 <% if (!recent.length) { %> 47 <p class="muted"> Nothing yet.</p>53 <p class="muted"><%= t('acom.nothing_yet') %></p> 48 54 <% } else { %> 49 55 <ul class="decision-list">
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)