From 57e3d5324559255e57655f71b333edc6c54fabdf Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Mon, 17 Apr 2017 23:11:45 +0200 Subject: [PATCH] Hide own votes link if no voter is authenticated --- templates/motions.html | 4 ++-- 1 file 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 }} Show all votes -{{ else }} +{{ else if $voter }} Show my outstanding votes
{{ end }} -{{ $voter := .Voter }} {{ if .Decisions }}