X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/108e13f9199648108e61f282a56f9ab4e7bc5dc6..94f498a0718776efa90193c918c6dd22f51329ac:/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 4788bb1..bb38836 100644 --- a/app/views/quickvote/my_quickvotes.rhtml +++ b/app/views/quickvote/my_quickvotes.rhtml @@ -1,4 +1,3 @@ -<% breakpoint %> <% ["Name", "Start Date", "End Date", "Description"].each do |column| %> @@ -8,13 +7,18 @@ <% @myqvs.each do |quickvote| %> - - - - + + <% end %> -
- <%= 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 %>
\ No newline at end of file +