X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/4f2f1126a7a13ee3a6348e6033620ea6eb2b0d8e..e3b1d64e4220f627e53b6c8c0f70ba941dfdc788:/app/views/quickvote/my_quickvotes.rhtml?ds=sidebyside diff --git a/app/views/quickvote/my_quickvotes.rhtml b/app/views/quickvote/my_quickvotes.rhtml index a512c7f..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 %>