From 748be96af6e45dc9a431f0b5a944f8872cd69192 Mon Sep 17 00:00:00 2001
From: Ben Adida <ben@adida.net>
Date: Wed, 9 Mar 2011 16:08:53 -0800
Subject: [PATCH] aliased voters - don't show the name

---
 helios/templates/castvote.html | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/helios/templates/castvote.html b/helios/templates/castvote.html
index 18edfc9..68197c5 100644
--- a/helios/templates/castvote.html
+++ b/helios/templates/castvote.html
@@ -5,7 +5,13 @@
 <h2 class="title">Cast Vote {{cast_vote.vote_tinyhash}}</h2>
 cast in <a href="{% url helios.views.one_election_view election.uuid %}">{{election.name}}</a><br />
 Fingerprint: <tt>{{cast_vote.vote_hash}}</tt><br />
-by <b><u>{{voter.name}}</u></b>
+by <b><u>
+{% if voter.alias %}
+{{voter.alias}}
+{% else %}
+{{voter.name}}
+{% endif %}
+</u></b>
 <br /><br />
 <a href="#" onclick="$('#castvote_content').slideToggle(250); return false;">details</a><br /><br />
 <div style="display:none;" id="castvote_content">
-- 
GitLab