summaryrefslogtreecommitdiff
path: root/boardvoting/templates/denied.html
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2018-03-29 21:26:12 +0200
committerJan Dittberner <jandd@cacert.org>2018-03-29 21:26:12 +0200
commit94dcb5bd75faa4adaef9f56df197a42a5e978718 (patch)
treed4a11fae0058f92e7629d2c7719bdefc959ce32a /boardvoting/templates/denied.html
parent4dd5e0982050ae92a9a37cb62e606b2807a85c27 (diff)
downloadcacert-boardvoting-94dcb5bd75faa4adaef9f56df197a42a5e978718.tar.gz
cacert-boardvoting-94dcb5bd75faa4adaef9f56df197a42a5e978718.tar.xz
cacert-boardvoting-94dcb5bd75faa4adaef9f56df197a42a5e978718.zip
Use static assets for HTML templates
- implement custom http.Filesystem boardvoting.AssetFS - replace "footer" and "header" with "footer.html" and "header.html" - change renderTemplate to use Assets - use boardvoting.GetAssetFS() with http.Fileserver
Diffstat (limited to 'boardvoting/templates/denied.html')
-rw-r--r--boardvoting/templates/denied.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/boardvoting/templates/denied.html b/boardvoting/templates/denied.html
index 398a36f..53bb364 100644
--- a/boardvoting/templates/denied.html
+++ b/boardvoting/templates/denied.html
@@ -1,7 +1,7 @@
-{{ template "header" . }}
+{{ template "header.html" . }}
<div class="column">
<div class="ui negative message">
- <div class="header">You are not authorized to act here!</div>
+ <div class="header.html">You are not authorized to act here!</div>
<p>If you think this is in error, please contact the administrator.</p>
<p>If you don't know who that is, it is definitely not an error ;)</p>
{{ if .Emails }}
@@ -14,4 +14,4 @@
{{ end }}
</div>
</div>
-{{ template "footer" . }} \ No newline at end of file
+{{ template "footer.html" . }} \ No newline at end of file