Jan Dittberner
4dd5e09820
- 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
27 lines
No EOL
1 KiB
HTML
27 lines
No EOL
1 KiB
HTML
{{ template "header" . }}
|
|
<div class="column">
|
|
<div class="ui basic segment">
|
|
<div class="ui floated right secondary menu">
|
|
<a href="/motions/" class="item" title="Show all votes">Back to motions</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{ with .Decision }}
|
|
<div class="column">
|
|
<div class="ui raised segment">
|
|
{{ template "motion_fragment" . }}
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
<form action="/vote/{{ .Decision.Tag }}/{{ .VoteChoice }}" method="post">
|
|
<div class="ui form">
|
|
{{ if eq 1 .VoteChoice }}
|
|
<button class="ui right labeled green icon button" type="submit"><i class="check circle icon"></i> Vote {{ .VoteChoice }}</button>
|
|
{{ else if eq -1 .VoteChoice }}
|
|
<button class="ui right labeled red icon button" type="submit"><i class="minus circle icon"></i> Vote {{ .VoteChoice }}</button>
|
|
{{ else }}
|
|
<button class="ui right labeled grey icon button" type="submit"><i class="circle icon"></i> Vote {{ .VoteChoice }}</button>
|
|
{{ end }}
|
|
</div>
|
|
</form>
|
|
{{ template "footer" . }} |