authorgravatar for git@paperclover.netclover caruso <git@paperclover.net> 2026-06-09 21:35:39-07:00
committergravatar for git@paperclover.netclover caruso <git@paperclover.net> 2026-06-11 01:41:50-07:00
logb6380f3a43e39e9571af27722d728fc17327d472
tree4e5609ec7961c841aa060aa8240aa37954d34c92
parent59f6221379cc7f174fd65267e8f58b82d63f3a17
signature Signed by SSH key SHA256:xbd+BjjhyBfwk7GVoURf9Yx0gzDerHbvYv7SddNWmAs

chore: q+a tidying


3 files changed, 13 insertions(+), 4 deletions(-)

src/q+a/pages/admin.q+a.marko+1-1
...@@ -10,7 +10,7 @@ export const regenerate = {...@@ -10,7 +10,7 @@ export const regenerate = {
10 tags: ["q+a", "q+a inbox"],10 tags: ["q+a", "q+a inbox"],
11};11};
1212
13<const/inboxSize=PendingQuestion.getAll().length>13<const/inboxSize=[...PendingQuestion.getAll()].length>
14<if=(inboxSize > 0)>14<if=(inboxSize > 0)>
15 <p>15 <p>
16 <strong style={ color: "#ff4b4b" }>16 <strong style={ color: "#ff4b4b" }>
src/q+a/questions.css+11
...@@ -81,6 +81,17 @@...@@ -81,6 +81,17 @@
81 --fg: #8c78ff;81 --fg: #8c78ff;
82 }82 }
8383
84 /* admin-only edit link: hidden so the page screenshots like the public
85 view, revealed when hovering (or keyboard-focusing) the entry. */
86 .edit-link {
87 display: none;
88 margin-right: 0.5rem;
89 }
90 e-:hover > .edit-link,
91 .edit-link:focus {
92 display: inline;
93 }
94
84 h1 {95 h1 {
85 display: flex;96 display: flex;
86 flex-wrap: wrap;97 flex-wrap: wrap;
src/q+a/tags/question.marko+1-3
...@@ -18,9 +18,7 @@ export const transitionDate = 1735639200000;...@@ -18,9 +18,7 @@ export const transitionDate = 1735639200000;
18 f=(date > transitionDate ? true : null)18 f=(date > transitionDate ? true : null)
19 id=admin ? `q${id}` : undefined19 id=admin ? `q${id}` : undefined
20>20>
21 <if=admin>21 <if=admin><a class="edit-link" href=`/admin/q+a/${id}`>[EDIT]</a></if>
22 <a style="margin-right: 0.5rem" href=`/admin/q+a/${id}`>[EDIT]</a>
23 </if>
24 <a>22 <a>
25 <time datetime=formatQuestionISOTimestamp(date)>23 <time datetime=formatQuestionISOTimestamp(date)>
26 ${formatQuestionTimestamp(date)}24 ${formatQuestionTimestamp(date)}