Improve design
- improve icons - implement VoteChoice and VoteStatus as real types with Scanner and Value methodsmain
parent
b8b6899cf3
commit
164495c818
@ -1,15 +1,16 @@
|
|||||||
{{ define "motion_actions" }}
|
{{ define "motion_actions" }}
|
||||||
{{ if eq .Status 0 }}
|
{{ if eq .Status.Label "pending" }}
|
||||||
<a class="ui compact right labeled green icon button" href="/vote/{{ .Tag }}/aye"><i
|
<a class="ui compact labeled green icon button" href="/vote/{{ .Tag }}/aye">
|
||||||
class="check circle icon"></i> Aye</a>
|
<i class="check circle icon"></i> Aye</a>
|
||||||
<a class="ui compact right labeled red icon button" href="/vote/{{ .Tag }}/naye"><i
|
<a class="ui compact labeled red icon button" href="/vote/{{ .Tag }}/naye">
|
||||||
class="minus circle icon"></i> Naye</a>
|
<i class="minus circle icon"></i> Naye</a>
|
||||||
<a class="ui compact right labeled grey icon button" href="/vote/{{ .Tag }}/abstain"><i class="circle icon"></i>
|
<a class="ui compact labeled grey icon button" href="/vote/{{ .Tag }}/abstain">
|
||||||
Abstain</a>
|
<i class="question circle icon"></i> Abstain</a>
|
||||||
<a class="ui compact left labeled icon button" href="/proxy/{{ .Tag }}"><i class="users icon"></i> Proxy
|
<a class="ui compact labeled icon button" href="/proxy/{{ .Tag }}">
|
||||||
Vote</a>
|
<i class="users icon"></i> Proxy Vote</a>
|
||||||
<a class="ui compact left labeled icon button" href="/motions/{{ .Tag }}/edit"><i class="edit icon"></i> Modify</a>
|
<a class="ui compact labeled icon button" href="/motions/{{ .Tag }}/edit">
|
||||||
<a class="ui compact left labeled icon button" href="/motions/{{ .Tag }}/withdraw"><i class="trash icon"></i>
|
<i class="edit icon"></i> Modify</a>
|
||||||
Withdraw</a>
|
<a class="ui compact labeled icon button" href="/motions/{{ .Tag }}/withdraw">
|
||||||
|
<i class="trash icon"></i> Withdraw</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
@ -1,3 +1,7 @@
|
|||||||
{{ define "motion_status_class" -}}
|
{{ define "motion_status_class" -}}
|
||||||
{{ if eq . 0 }}blue{{ else if eq . 1 }}green{{ else if eq . -1 }}red{{ else if eq . -2 }}grey{{ end }}
|
{{- if eq .Label "pending" }}blue
|
||||||
|
{{- else if eq .Label "approved" }}green
|
||||||
|
{{- else if eq .Label "declined" }}red
|
||||||
|
{{- else if eq .Label "withdrawn" }}grey
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
Loading…
Reference in New Issue