diff options
author | Jan Dittberner <jandd@cacert.org> | 2018-03-29 20:08:41 +0200 |
---|---|---|
committer | Jan Dittberner <jandd@cacert.org> | 2018-03-29 20:08:41 +0200 |
commit | 4dd5e0982050ae92a9a37cb62e606b2807a85c27 (patch) | |
tree | d2b9900068afe3d747524b43fbae49b86feaa7c8 /boardvoting/templates/motion.html | |
parent | aea93c328e76fba300f5dd2c380b46c62a6db904 (diff) | |
download | cacert-boardvoting-4dd5e0982050ae92a9a37cb62e606b2807a85c27.tar.gz cacert-boardvoting-4dd5e0982050ae92a9a37cb62e606b2807a85c27.tar.xz cacert-boardvoting-4dd5e0982050ae92a9a37cb62e606b2807a85c27.zip |
Embed database migrations
- switch from goose to github.com/rubenv/sql-migrate
- move assets (static, templates, migrations) to boardvoting package
- add generated boardvoting/assets.go
- remove unused static files from static directory
- add package db with db migration configuration
Diffstat (limited to 'boardvoting/templates/motion.html')
-rw-r--r-- | boardvoting/templates/motion.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/boardvoting/templates/motion.html b/boardvoting/templates/motion.html new file mode 100644 index 0000000..8fc7530 --- /dev/null +++ b/boardvoting/templates/motion.html @@ -0,0 +1,19 @@ +{{ template "header" . }} +{{ $voter := .Voter }} +<div class="column"> + <div class="ui basic segment"> + <div class="ui floated right secondary menu"> + <a href="/motions/" class="item" title="Show all votes">All votes</a> + {{ if $voter }}<a href="/motions/?unvoted=1" class="item" title="Show my outstanding votes">My outstanding votes</a>{{ end }} + </div> + </div> +</div> +{{ with .Decision }} +<div class="column"> + <div class="ui raised segment"> + {{ template "motion_fragment" . }} + {{ if $voter }}{{ template "motion_actions" . }}{{ end }} + </div> +</div> +{{ end}} +{{ template "footer" . }}
\ No newline at end of file |