Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 May 2012 00:46:19 +0000 (UTC)
From:      Dag-Erling Smorgrav <des@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r235815 - user/des/fbce/root/lib
Message-ID:  <201205230046.q4N0kJ9M038338@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: des
Date: Wed May 23 00:46:19 2012
New Revision: 235815
URL: http://svn.freebsd.org/changeset/base/235815

Log:
  Only logged-in users should see the "candidates" link.

Modified:
  user/des/fbce/root/lib/navigation

Modified: user/des/fbce/root/lib/navigation
==============================================================================
--- user/des/fbce/root/lib/navigation	Tue May 22 23:14:01 2012	(r235814)
+++ user/des/fbce/root/lib/navigation	Wed May 23 00:46:19 2012	(r235815)
@@ -2,7 +2,7 @@
   <ul>
     <li><a href="[% c.uri_for('/') | html %]">Home</a></li>
     [% IF user.defined && user.active && nominating == 0 %]<li><a href="[% c.uri_for('/run') | html %]">Run</a></li>[% END %]
-    [% IF nominating >= 0 %]<li><a href="[% c.uri_for('/see') | html %]">Candidates</a></li>[% END %]
+    [% IF user.defined && nominating >= 0 %]<li><a href="[% c.uri_for('/see') | html %]">Candidates</a></li>[% END %]
     [% IF user.defined && user.active && voting == 0 %]<li><a href="[% c.uri_for('/vote') | html %]">Vote</a></li>[% END %]
     [% IF announced %]<li><a href="[% c.uri_for('/result') | html %]">Result</a></li>[% END %]
     [% IF user.admin %]



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