Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 May 2018 20:55:01 +0000 (UTC)
From:      =?UTF-8?Q?Dag-Erling_Sm=c3=b8rgrav?= <des@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r334117 - user/des/fbce/root/vote
Message-ID:  <201805232055.w4NKt1id069714@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: des
Date: Wed May 23 20:55:01 2018
New Revision: 334117
URL: https://svnweb.freebsd.org/changeset/base/334117

Log:
  Fix statement link on voting page for candidates with no slogan, cf. r333692.

Modified:
  user/des/fbce/root/vote/index.tt

Modified: user/des/fbce/root/vote/index.tt
==============================================================================
--- user/des/fbce/root/vote/index.tt	Wed May 23 20:50:09 2018	(r334116)
+++ user/des/fbce/root/vote/index.tt	Wed May 23 20:55:01 2018	(r334117)
@@ -65,7 +65,7 @@
       <tr>
 	<td class="votebox"><input type="checkbox" name="vote_for_[% login %]" id="vote_for_[% login %]"[% IF voted_for.$login %] checked="checked"[% END %] onclick="updateTotal()"/></td>
 	<td><label for="vote_for_[% login %]">[% candidate.name | html %][% IF candidate.incumbent %] (incumbent)[% END %]:</label></td>
-	<td><a href="[% c.uri_for('/see/candidate', login) | html %]">[% candidate.statement.short | html %]</a></td>
+	<td><a href="[% c.uri_for('/see/candidate', login) | html %]">[% IF candidate.statement.short %][% candidate.statement.short | html %][% ELSE %]see statement[% END %]</a></td>
       </tr>
       [% END %]
       <tr id="totalrow" style="visibility: collapse">



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805232055.w4NKt1id069714>