Skip to content
This repository has been archived by the owner on Apr 27, 2023. It is now read-only.

Commit

Permalink
Only present logged in contribs with voting entries
Browse files Browse the repository at this point in the history
  • Loading branch information
rafl committed Mar 10, 2012
1 parent 066eda3 commit c1584ef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions root/templates/entries/index.html
Expand Up @@ -57,8 +57,10 @@ <h2>Voting Rules</h2>
<% FOREACH entry IN entries %>
<% SET id = loop.index %>
<h2>
<% IF c.user_exists %>
<input type="text" class="title-vote" id="not-votes.<% id %>.score"
name="not-votes.<% id %>.score" value="" />
<% END %>
<% entry.title %>
<div style="clear: both"></div>
</h2>
Expand All @@ -74,10 +76,10 @@ <h2>
</div>
<% END %>

<% IF c.user_exists %>
<h2>Cast your vote!</h2>
<div class="entry votepoll">

<% IF c.user_exists %>
<form method="post" action="<% c.uri_for('/vote/') %>" id="vote">
<% FOREACH entry IN entries %>
<% SET id = loop.index %>
Expand All @@ -91,5 +93,5 @@ <h2>Cast your vote!</h2>

<input type="submit" value="Vote" />
</form>
<% END %>
</div>
<% END %>

0 comments on commit c1584ef

Please sign in to comment.