summaryrefslogtreecommitdiff
path: root/boardvoting/templates/create_motion_form.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/create_motion_form.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/create_motion_form.html')
-rw-r--r--boardvoting/templates/create_motion_form.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/boardvoting/templates/create_motion_form.html b/boardvoting/templates/create_motion_form.html
index b3cbadb..5958aa7 100644
--- a/boardvoting/templates/create_motion_form.html
+++ b/boardvoting/templates/create_motion_form.html
@@ -1,4 +1,4 @@
-{{ template "header" . }}
+{{ template "header.html" . }}
<div class="column">
<div class="ui basic segment">
<div class="ui floated right secondary menu">
@@ -70,4 +70,4 @@
</form>
</div>
</div>
-{{ template "footer" . }} \ No newline at end of file
+{{ template "footer.html" . }} \ No newline at end of file