| 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 | |
| 10 | <const/inboxSize=questions.getAllPending().length> |
| 11 | <if=(inboxSize > 0)> |
| 12 | <p> |
| 13 | <strong style={ color: "#ff4b4b" }> |
| 14 | notice: ${inboxSize} items in <a href="/admin/q+a/inbox">inbox</a>! |
| 15 | </strong> |
| 16 | </p> |
| 17 | </if> |
| 18 | |
| 19 | <MainPage admin/> |
| 20 | |
| 21 | import MainPage from "./q+a.marko"; |
| 22 | import * as questions from "#src/q+a/models/questions.ts"; |