| 1 | export { theme } from "../tags/question-layout.marko"; |
| 2 | export interface Input { |
| 3 | admin?: boolean; |
| 4 | } |
| 5 | export const meta: Metadata = { |
| 6 | title: "paper clover q+a", |
| 7 | description: "ask clover a question", |
| 8 | }; |
| 9 | export const regenerate = { |
| 10 | tags: ["q+a", "q+a inbox"], |
| 11 | }; |
| 12 | |
| 13 | <const/inboxSize=[...PendingQuestion.getAll()].length> |
| 14 | <if=(inboxSize > 0)> |
| 15 | <p> |
| 16 | <strong style={ color: "#ff4b4b" }> |
| 17 | notice: ${inboxSize} items in <a href="/admin/q+a/inbox">inbox</a>! |
| 18 | </strong> |
| 19 | </p> |
| 20 | </if> |
| 21 | |
| 22 | <MainPage admin/> |
| 23 | |
| 24 | import MainPage from "./q+a.marko"; |
| 25 | import { PendingQuestion } from "#src/q+a/models/PendingQuestion.ts"; |