diff options
author | Jan Dittberner <jan@dittberner.info> | 2017-04-17 23:11:45 +0200 |
---|---|---|
committer | Jan Dittberner <jan@dittberner.info> | 2017-04-22 00:12:31 +0200 |
commit | 57e3d5324559255e57655f71b333edc6c54fabdf (patch) | |
tree | 7e9d17b67d9b740fcfbab5bfa48eb6967930f036 | |
parent | e0be1a6aa5fe580794e1f967f1417e3878d17321 (diff) | |
download | cacert-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.html | 4 |
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> |