projects
/
selectricity
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a list of recent votes to the homepage.
[selectricity]
/
app
/
views
/
site
/
index.rhtml
diff --git
a/app/views/site/index.rhtml
b/app/views/site/index.rhtml
index 9fd332b2f65472a10f570376e8bf5fe0cfc119ce..e89063dc3331416a79749f44fcb583df4119df7c 100644
(file)
--- a/
app/views/site/index.rhtml
+++ b/
app/views/site/index.rhtml
@@
-13,6
+13,14
@@
methods.</p>
<p><%= link_to "Create a QuickVote", :controller => 'quickvote', :action => 'create' %></p>
<p><%= link_to "Create a QuickVote", :controller => 'quickvote', :action => 'create' %></p>
+<p>Recent <em>QuickVotes</em> include:</p>
+
+<ul>
+<% for quickvote in @quickvotes %>
+<li><%= link_to (quickvote.shortdesc || "Unnamed"), quickvote_url(:votename => quickvote.name) %></li>
+<% end %>
+</ul>
+
<h2>Voters</h2>
<p>If you have received an email with a token inviting you to vote in an
<h2>Voters</h2>
<p>If you have received an email with a token inviting you to vote in an
Benjamin Mako Hill
||
Want to submit a patch?