| author | |
| committer | |
| log | b6380f3a43e39e9571af27722d728fc17327d472 |
| tree | 4e5609ec7961c841aa060aa8240aa37954d34c92 |
| parent | 59f6221379cc7f174fd65267e8f58b82d63f3a17 |
| signature | Signed by SSH key SHA256:xbd+BjjhyBfwk7GVoURf9Yx0gzDerHbvYv7SddNWmAs |
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 | 10 | tags: ["q+a", "q+a inbox"], |
| 11 | 11 | }; |
| 12 | 12 | |
| 13 | <const/inboxSize=PendingQuestion.getAll().length> | |
| 13 | <const/inboxSize=[...PendingQuestion.getAll()].length> | |
| 14 | 14 | <if=(inboxSize > 0)> |
| 15 | 15 | <p> |
| 16 | 16 | <strong style={ color: "#ff4b4b" }> |
src/q+a/questions.css+11| ... | ... | @@ -81,6 +81,17 @@ |
| 81 | 81 | --fg: #8c78ff; |
| 82 | 82 | } |
| 83 | 83 | |
| 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 | 95 | h1 { |
| 85 | 96 | display: flex; |
| 86 | 97 | flex-wrap: wrap; |
src/q+a/tags/question.marko+1-3| ... | ... | @@ -18,9 +18,7 @@ export const transitionDate = 1735639200000; |
| 18 | 18 | f=(date > transitionDate ? true : null) |
| 19 | 19 | id=admin ? `q${id}` : undefined |
| 20 | 20 | > |
| 21 | <if=admin> | |
| 22 | <a style="margin-right: 0.5rem" href=`/admin/q+a/${id}`>[EDIT]</a> | |
| 23 | </if> | |
| 21 | <if=admin><a class="edit-link" href=`/admin/q+a/${id}`>[EDIT]</a></if> | |
| 24 | 22 | <a> |
| 25 | 23 | <time datetime=formatQuestionISOTimestamp(date)> |
| 26 | 24 | ${formatQuestionTimestamp(date)} |