From 54c42455f393c5ae8ebdb19884d40ebd9a18f755 Mon Sep 17 00:00:00 2001 From: r Date: Sun, 5 Sep 2021 17:17:59 +0000 Subject: Add quick reply --- templates/postform.tmpl | 1 + templates/quickreply.tmpl | 12 ++++++++++++ templates/status.tmpl | 3 +++ 3 files changed, 16 insertions(+) create mode 100644 templates/quickreply.tmpl (limited to 'templates') diff --git a/templates/postform.tmpl b/templates/postform.tmpl index 421b118..35171a4 100644 --- a/templates/postform.tmpl +++ b/templates/postform.tmpl @@ -4,6 +4,7 @@ {{if .ReplyContext}} + {{else}} diff --git a/templates/quickreply.tmpl b/templates/quickreply.tmpl new file mode 100644 index 0000000..97ff20a --- /dev/null +++ b/templates/quickreply.tmpl @@ -0,0 +1,12 @@ +{{with $s := .Data}} +{{template "header.tmpl" (WithContext .CommonData $.Ctx)}} +
Quick Reply
+ +{{if .Ancestor}} +{{template "status.tmpl" (WithContext .Ancestor $.Ctx)}} +{{end}} +{{template "status.tmpl" (WithContext .Status $.Ctx)}} +{{template "postform.tmpl" (WithContext $s.PostContext $.Ctx)}} + +{{template "footer.tmpl"}} +{{end}} diff --git a/templates/status.tmpl b/templates/status.tmpl index 7ca8192..a7cc10d 100644 --- a/templates/status.tmpl +++ b/templates/status.tmpl @@ -35,6 +35,9 @@ source + + quickreply + {{if .Muted}}
-- cgit v1.2.3