Changeset f45fc82 in Klonkt for src/views/pages/admin.ejs
- Timestamp:
- 06/15/2026 01:14:02 AM (3 months ago)
- Branches:
- main
- Children:
- bd7f10d
- Parents:
- b50a885
- File:
-
- 1 edited
-
src/views/pages/admin.ejs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/views/pages/admin.ejs
rb50a885 rf45fc82 35 35 </div> 36 36 37 <% if (typeof posts !== 'undefined' && posts && posts.length) { %> 38 <% var _drafts = posts.filter(function(p){ return p.isDraft; }).length; %> 39 <h2>Posts<% if (_drafts) { %> <span class="pl-draftcount"><%= _drafts %> concept<%= _drafts === 1 ? '' : 'en' %></span><% } %></h2> 40 <ul class="post-admin-list"> 41 <% posts.forEach(function(p) { %> 42 <li class="pal-row<%= p.isDraft ? ' is-draft' : '' %>"> 43 <a class="pal-title" href="<%= p.editUrl %>"> 44 <% if (p.isDraft) { %><span class="pal-badge">Concept</span><% } %> 45 <span class="pal-name"><%= p.title || '(zonder titel)' %></span> 46 </a> 47 <span class="pal-actions"> 48 <a class="pal-link" href="<%= p.editUrl %>">Bewerken</a> 49 <% if (!p.isDraft) { %><a class="pal-link" href="<%= p.viewUrl %>">Bekijk</a><% } %> 50 </span> 51 </li> 52 <% }); %> 53 </ul> 54 <% } %> 55 37 56 <% if (sites && sites.length) { %> 38 57 <h2>Sites</h2> … … 82 101 .admin-tagline em { font-style: normal; opacity: 0.7; } 83 102 103 /* Posts/concepten-lijst */ 104 .pl-draftcount { font-family: var(--font-ui, system-ui); font-size: 0.8rem; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); padding: 0.1rem 0.55rem; border-radius: 99px; vertical-align: middle; } 105 .post-admin-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; } 106 .pal-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0.9rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper-2); transition: border-color 120ms; } 107 .pal-row:hover { border-color: var(--accent); } 108 .pal-row.is-draft { border-left: 3px solid var(--accent); } 109 .pal-title { display: inline-flex; align-items: center; gap: 0.6rem; min-width: 0; color: var(--ink); text-decoration: none; font-weight: 600; } 110 .pal-title:hover { color: var(--accent); } 111 .pal-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } 112 .pal-badge { flex-shrink: 0; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); padding: 0.1rem 0.5rem; border-radius: 99px; } 113 .pal-actions { display: flex; gap: 0.75rem; flex-shrink: 0; } 114 .pal-link { color: var(--ink-muted); font-size: 0.85rem; text-decoration: none; white-space: nowrap; } 115 .pal-link:hover { color: var(--accent); text-decoration: underline; } 116 84 117 /* Quick-links grid — mobile-first. 85 118 auto-fit + minmax means: as many equal columns as fit, each at least 140px.
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)