X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/7b649ccad8804580632c255b9f451482fdbbe32d..3e545735b4784af19edec9bfcc8e25ff17cb7f12:/app/views/quickvote/my_quickvotes.rhtml diff --git a/app/views/quickvote/my_quickvotes.rhtml b/app/views/quickvote/my_quickvotes.rhtml index a512c7f..a920480 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 %> + <%= quickvote.name %> + <% end %> <%= quickvote.startdate.strftime("%x") %> <%= quickvote.enddate.strftime("%x") %> - <%= quickvote.description %> + <%= quickvote.description %> <% end %>