Allowed for the results page of quickvotes to be hidden while the quickvote is go
[selectricity] / app / views / quickvote / my_quickvotes.rhtml
index a512c7f517fb8db8db8e5dea825f26bedee2ac14..a920480be21a2515272ecf398f91190fd19f10bb 100644 (file)
@@ -7,13 +7,18 @@
 
   <% @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 %>
+                 <%= quickvote.name %>
+               <% end %>
        </td>
     <td><%= quickvote.startdate.strftime("%x") %></td>
     <td><%= quickvote.enddate.strftime("%x") %></td>
-       <td><%= quickvote.description %>
+       <td><%= quickvote.description %></td>
   </tr>
 <% end %>
 </table>       

Benjamin Mako Hill || Want to submit a patch?