Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Apr 2014 20:48:33 +0000 (UTC)
From:      Dag-Erling Smørgrav <des@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r264627 - user/des/fbp/root/poll
Message-ID:  <201404172048.s3HKmXMM040939@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: des
Date: Thu Apr 17 20:48:32 2014
New Revision: 264627
URL: http://svnweb.freebsd.org/changeset/base/264627

Log:
  Print the number of voters and votes cast on the result page.

Modified:
  user/des/fbp/root/poll/result.tt

Modified: user/des/fbp/root/poll/result.tt
==============================================================================
--- user/des/fbp/root/poll/result.tt	Thu Apr 17 20:47:30 2014	(r264626)
+++ user/des/fbp/root/poll/result.tt	Thu Apr 17 20:48:32 2014	(r264627)
@@ -19,6 +19,7 @@
 <p>No votes have been cast yet.</p>
 [% ELSE %]
 <p>Here are the[% IF now < poll.ends %] preliminary[% END %] results of the poll:</p>
+<p>[% IF poll.votes_rs.count == 1 %]One vote has[% ELSE %][% poll.votes_rs.count %] votes have[% END %] been cast by [% IF poll.voters_rs.count == 1 %]one voter[% ELSE %][% poll.voters_rs.count %] voters[% END %].</p>
 [% FOREACH question IN poll.questions %]
 [% qid = question.id %]
 <div class="short">



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