app/views/resque_web/workers/show.html.erb in resque-web-clone-0.0.6 vs app/views/resque_web/workers/show.html.erb in resque-web-clone-0.0.7

- old
+ new

@@ -5,10 +5,11 @@ <tr> <th>&nbsp;</th> <th>Where</th> <th>Queues</th> <th>Processing</th> + <th>Kill Worker?</th> </tr> <% @workers.each do |worker| %> <tr class="<% worker.state %>"> <td class="icon"><%= image_tag "resque_web/#{worker.state}.png", :alt => worker.state, :title => worker.state %></td> @@ -25,9 +26,13 @@ <code><%= data['payload']['class'] %></code> <small><%= data['run_at'] %></small> <% else %> <span class="waiting">Waiting for a job...</span> <% end %> + </td> + <td> + <%= form_tag(worker_path(params[:id]), :method => :delete, :class => 'remove-worker') do %> + <%= submit_tag "Remove Worker", :class => 'btn btn-danger', :data => { :confirm => "Are you absolutely sure? This cannot be undone." } %> </td> </tr> <% end %> <% if @workers.empty? %> <tr>