Hide own votes link if no voter is authenticated
This commit is contained in:
parent
e0be1a6aa5
commit
57e3d53245
1 changed files with 2 additions and 2 deletions
|
@ -1,10 +1,10 @@
|
||||||
{{ template "header" . }}
|
{{ template "header" . }}
|
||||||
|
{{ $voter := .Voter }}
|
||||||
{{ if .Params.Flags.Unvoted }}
|
{{ if .Params.Flags.Unvoted }}
|
||||||
<a href="/motions/">Show all votes</a>
|
<a href="/motions/">Show all votes</a>
|
||||||
{{ else }}
|
{{ else if $voter }}
|
||||||
<a href="/motions/?unvoted=1">Show my outstanding votes</a><br/>
|
<a href="/motions/?unvoted=1">Show my outstanding votes</a><br/>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ $voter := .Voter }}
|
|
||||||
{{ if .Decisions }}
|
{{ if .Decisions }}
|
||||||
<table class="list">
|
<table class="list">
|
||||||
<thead>
|
<thead>
|
||||||
|
|
Loading…
Reference in a new issue