Hide own votes link if no voter is authenticated

This commit is contained in:
Jan Dittberner 2017-04-17 23:11:45 +02:00
parent e0be1a6aa5
commit 57e3d53245

View file

@ -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>