<% @query.keys.sort.each {|key| %> <% if key == "Info" %> <%= create_links_in_query(@query[key]) %> <% else %> <%= @query[key] %> <% end %> <% } %> <% if @query["Time"].to_i > 5 and @query["Command"] == "Query" %> <%= button_to "Kill", :action => "kill_query", :id => @query["Id"], :connection_id => @connection.object_id %> <% end %>