Changeset bbf9d1a in Klonkt for src/views/pages/admin-sites.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-sites.ejs (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/views/pages/admin-sites.ejs
r929d98d rbbf9d1a 1 1 <div class="container ax-page"> 2 2 3 <p><a href="/admin" class="btn">← Beheer</a></p>3 <p><a href="/admin" class="btn">← <%= t('asit2.back') %></a></p> 4 4 <header class="ax-header"> 5 5 <div> 6 <h1> Sites</h1>7 <p class="ax-tagline"> Beheer alle sites op deze installatie.</p>6 <h1><%= t('asit2.title') %></h1> 7 <p class="ax-tagline"><%= t('asit2.tagline') %></p> 8 8 </div> 9 9 </header> … … 13 13 14 14 <div class="ax-actions-bar"> 15 <a href="/admin/sites/new" class="ax-btn ax-btn-primary">+ Nieuwe site</a>15 <a href="/admin/sites/new" class="ax-btn ax-btn-primary">+ <%= t('asit2.new_site') %></a> 16 16 </div> 17 17 … … 20 20 <div class="ax-empty"> 21 21 <div class="ax-empty-icon">🌐</div> 22 <p> Nog geen sites.</p>23 <p class="ax-empty-sub"> Maak er een via de knop hierboven.</p>22 <p><%= t('asit2.empty') %></p> 23 <p class="ax-empty-sub"><%= t('asit2.empty_sub') %></p> 24 24 </div> 25 25 </div> 26 26 <% } else { %> 27 <% 28 var _s_primary = t('asit2.pill_primary'); 29 var _s_primary_t = t('asit2.pill_primary_title'); 30 var _s_public = t('asit2.pill_public'); 31 var _s_public_t = t('asit2.pill_public_title'); 32 var _s_private = t('asit2.pill_private'); 33 var _s_private_t = t('asit2.pill_private_title'); 34 var _s_noindex = t('asit2.pill_noindex'); 35 var _s_noindex_t = t('asit2.pill_noindex_title'); 36 var _s_by = t('asit2.by'); 37 var _s_t_posts = t('asit2.t_posts'); 38 var _s_l_posts = t('asit2.l_posts'); 39 var _s_t_created = t('asit2.t_created'); 40 var _s_l_created = t('asit2.l_created'); 41 var _s_makeprim = t('asit2.make_primary'); 42 var _s_makeprim_t = t('asit2.make_primary_title'); 43 var _s_makeprim_c = t('asit2.make_primary_confirm'); 44 var _s_edit = t('asit2.edit'); 45 var _s_del = t('asit2.delete'); 46 var _s_del_c = t('asit2.delete_confirm'); 47 %> 27 48 <ul class="ax-list"> 28 49 <% sites.forEach(function(s) { %> … … 37 58 <a href="/user/<%= s.slug %>"><%= s.title %></a> 38 59 <% if (s.is_primary) { %> 39 <span class="ax-pill ax-pill-primary" title=" Hoofd-/labelsite van deze installatie">★ primair</span>60 <span class="ax-pill ax-pill-primary" title="<%= _s_primary_t %>">★ <%= _s_primary %></span> 40 61 <% } %> 41 62 <% if (s.is_public) { %> 42 <span class="ax-pill ax-pill-ok" title=" Publiek zichtbaar">✓ public</span>63 <span class="ax-pill ax-pill-ok" title="<%= _s_public_t %>">✓ <%= _s_public %></span> 43 64 <% } else { %> 44 <span class="ax-pill" title=" Niet publiek">🔒 private</span>65 <span class="ax-pill" title="<%= _s_private_t %>">🔒 <%= _s_private %></span> 45 66 <% } %> 46 67 <% if (!s.robots_index) { %> 47 <span class="ax-pill" title=" Niet geïndexeerd door zoekmachines">🚫🤖 noindex</span>68 <span class="ax-pill" title="<%= _s_noindex_t %>">🚫🤖 <%= _s_noindex %></span> 48 69 <% } %> 49 70 </div> … … 52 73 <% if (s.owner_username) { %> 53 74 <span class="ax-track-sep">·</span> 54 <span> door<%= s.owner_username %></span>75 <span><%= _s_by %> <%= s.owner_username %></span> 55 76 <% } %> 56 77 </div> … … 59 80 60 81 <div class="ax-site-stats"> 61 <span class="ax-stat" title=" Aantal posts">82 <span class="ax-stat" title="<%= _s_t_posts %>"> 62 83 <span class="ax-stat-num"><%= s.post_count %></span> 63 <span class="ax-stat-label"> posts</span>84 <span class="ax-stat-label"><%= _s_l_posts %></span> 64 85 </span> 65 <span class="ax-stat" title=" Aangemaakt op">86 <span class="ax-stat" title="<%= _s_t_created %>"> 66 87 <span class="ax-stat-num ax-stat-date"><%= formatDate(s.created_at) %></span> 67 <span class="ax-stat-label"> created</span>88 <span class="ax-stat-label"><%= _s_l_created %></span> 68 89 </span> 69 90 </div> … … 72 93 <% if (!s.is_primary && (typeof canMutate === 'undefined' || canMutate)) { %> 73 94 <form method="post" action="/admin/sites/<%= s.slug %>/make-primary" style="margin:0;display:inline" 74 onsubmit="return confirm(' Deze site instellen als de primaire/hoofd-site?')">75 <button type="submit" class="ax-icon-btn" aria-label=" Maak primair" title="Maak primaire/hoofd-site">★</button>95 onsubmit="return confirm('<%= _s_makeprim_c %>')"> 96 <button type="submit" class="ax-icon-btn" aria-label="<%= _s_makeprim %>" title="<%= _s_makeprim_t %>">★</button> 76 97 </form> 77 98 <% } %> 78 <a href="/admin/sites/<%= s.slug %>/edit" class="ax-icon-btn" aria-label=" Bewerken" title="Bewerken">✎</a>99 <a href="/admin/sites/<%= s.slug %>/edit" class="ax-icon-btn" aria-label="<%= _s_edit %>" title="<%= _s_edit %>">✎</a> 79 100 <form method="post" action="/admin/sites/<%= s.slug %>/delete" class="ax-delete-form" 80 onsubmit="return confirm(' Site verwijderen? Lukt alleen als er geen posts zijn.')">81 <button type="submit" class="ax-icon-btn ax-icon-btn-danger" aria-label=" Verwijderen" title="Verwijderen">🗑</button>101 onsubmit="return confirm('<%= _s_del_c %>')"> 102 <button type="submit" class="ax-icon-btn ax-icon-btn-danger" aria-label="<%= _s_del %>" title="<%= _s_del %>">🗑</button> 82 103 </form> 83 104 </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)