X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/6fdb49ee0dfc76980bcefb18968d1e1c55c8149c..8f1a5a8b6f7f44d557e8772a6f1b7025b406bb4d:/app/views/quickvote/my_quickvotes.rhtml?ds=inline
diff --git a/app/views/quickvote/my_quickvotes.rhtml b/app/views/quickvote/my_quickvotes.rhtml
index 546cb24..bb38836 100644
--- a/app/views/quickvote/my_quickvotes.rhtml
+++ b/app/views/quickvote/my_quickvotes.rhtml
@@ -7,13 +7,18 @@
<% @myqvs.each do |quickvote| %>
-
- <%= link_to "#{quickvote.name}",
- quickaction_url( :ident => quickvote.name, :action => 'results' ) %>
+ |
+ <% if quickvote.active == 1 %>
+ <%= link_to "#{quickvote.name}",
+ quickaction_url( :ident => quickvote.name,
+ :action => 'results' ) %>
+ <% else %>
+ <%=h quickvote.name %>
+ <% end %>
|
- <%= quickvote.startdate.strftime("%x") %> |
- <%= quickvote.enddate.strftime("%x") %> |
- <%= quickvote.description %>
+ | <%=h quickvote.startdate.strftime("%x") %> |
+ <%=h quickvote.enddate.strftime("%x") %> |
+ <%=h quickvote.description %> |
<% end %>
-
\ No newline at end of file
+