From c9ee420dbbd8e43b52248e4ebef1409cba91e192 Mon Sep 17 00:00:00 2001 From: Ben Visness Date: Mon, 12 Sep 2022 22:55:51 -0500 Subject: [PATCH] Allow authors to hide editor notes --- src/templates/src/education_article.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/templates/src/education_article.html b/src/templates/src/education_article.html index cb8ce9d7..0b04d75b 100644 --- a/src/templates/src/education_article.html +++ b/src/templates/src/education_article.html @@ -1,11 +1,21 @@ {{ template "base.html" . }} +{{ define "extrahead" }} + +{{ end }} + {{ define "content" }}

{{ .Title }}

{{ if and .User .User.IsEduAuthor }}
✎ Edit ✖ Delete + +
{{ end }}
@@ -16,4 +26,16 @@ I'm a sidebar!
+ + {{ end }}