]> projects.mako.cc - selectricity/blob - app/views/quickvote/my_quickvotes.rhtml
fix bug/typo in plurality results around candidate.id and candidate_id
[selectricity] / app / views / quickvote / my_quickvotes.rhtml
1 <table class="voterbox">
2   <tr>
3   <% ["Name", "Start Date", "End Date", "Description"].each do |column| %>
4         <th><%= column %></th>
5   <% end -%>
6   </tr>
7
8   <% @myqvs.each do |quickvote| %>
9   <tr>
10         <td>    
11           <% if quickvote.active == 1 %>
12             <%= link_to "#{quickvote.name}",
13                      quickaction_url( :ident => quickvote.name, 
14                                       :action => 'results' ) %>
15                 <% else %>
16                   <%=h quickvote.name %>
17                 <% end %>
18         </td>
19     <td><%=h quickvote.startdate.strftime("%x") %></td>
20     <td><%=h quickvote.enddate.strftime("%x") %></td>
21         <td><%=h quickvote.description %></td>
22   </tr>
23 <% end %>
24 </table>        

Benjamin Mako Hill || Want to submit a patch?