-<% breakpoint %>
<table class="voterbox">
<tr>
<% ["Name", "Start Date", "End Date", "Description"].each do |column| %>
<% @myqvs.each do |quickvote| %>
<tr>
- <td>
- <%= link_to "#{quickvote.name}",
- quickaction_url( :ident => quickvote.name, :action => 'results' ) %>
+ <td>
+ <% if quickvote.active == 1 %>
+ <%= link_to "#{quickvote.name}",
+ quickaction_url( :ident => quickvote.name,
+ :action => 'results' ) %>
+ <% else %>
+ <%=h quickvote.name %>
+ <% end %>
</td>
- <td><%= quickvote.startdate.strftime("%x") %></td>
- <td><%= quickvote.enddate.strftime("%x") %></td>
- <td><%= quickvote.description %>
+ <td><%=h quickvote.startdate.strftime("%x") %></td>
+ <td><%=h quickvote.enddate.strftime("%x") %></td>
+ <td><%=h quickvote.description %></td>
</tr>
<% end %>
-</table>
\ No newline at end of file
+</table>