summaryrefslogtreecommitdiff
path: root/boardvoting/templates/motion.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/motion.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/motion.html')
-rw-r--r--boardvoting/templates/motion.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/boardvoting/templates/motion.html b/boardvoting/templates/motion.html
index 8fc7530..e78a955 100644
--- a/boardvoting/templates/motion.html
+++ b/boardvoting/templates/motion.html
@@ -1,4 +1,4 @@
-{{ template "header" . }}
+{{ template "header.html" . }}
{{ $voter := .Voter }}
<div class="column">
<div class="ui basic segment">
@@ -16,4 +16,4 @@
</div>
</div>
{{ end}}
-{{ template "footer" . }} \ No newline at end of file
+{{ template "footer.html" . }} \ No newline at end of file