summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Dittberner <jan@dittberner.info>2017-04-17 23:11:45 +0200
committerJan Dittberner <jan@dittberner.info>2017-04-22 00:12:31 +0200
commit57e3d5324559255e57655f71b333edc6c54fabdf (patch)
tree7e9d17b67d9b740fcfbab5bfa48eb6967930f036
parente0be1a6aa5fe580794e1f967f1417e3878d17321 (diff)
downloadcacert-boardvoting-57e3d5324559255e57655f71b333edc6c54fabdf.tar.gz
cacert-boardvoting-57e3d5324559255e57655f71b333edc6c54fabdf.tar.xz
cacert-boardvoting-57e3d5324559255e57655f71b333edc6c54fabdf.zip
Hide own votes link if no voter is authenticated
-rw-r--r--templates/motions.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/motions.html b/templates/motions.html
index ef84757..414c399 100644
--- a/templates/motions.html
+++ b/templates/motions.html
@@ -1,10 +1,10 @@
{{ template "header" . }}
+{{ $voter := .Voter }}
{{ if .Params.Flags.Unvoted }}
<a href="/motions/">Show all votes</a>
-{{ else }}
+{{ else if $voter }}
<a href="/motions/?unvoted=1">Show my outstanding votes</a><br/>
{{ end }}
-{{ $voter := .Voter }}
{{ if .Decisions }}
<table class="list">
<thead>