Permalink
Browse files

you now must abort a test run before being able to delete it using th…

…e web interface
  • Loading branch information...
1 parent 3baf4f1 commit b6f054dbcb7a8dda68b913dee7ffad865245e2f2 Jared Grippe committed with Apr 12, 2012
@@ -24,7 +24,7 @@ def errored?
end
def complete?
- complete_at.present? || test_run.aborted?
+ complete_at.present?
end
def status
@@ -1,8 +1,9 @@
%tr{:class => test_run.status.gsub(' ','-')}
%td
- %form{:id => "delete#{test_run.id}", :action => test_run_path(test_run), :method => 'post'}
- %input{:type=>:hidden, :name=>'_method', :value=>'delete'}
- %a{:href => "javascript: $('#delete#{test_run.id}').submit()"} X
+ - if test_run.complete?
+ %form{:id => "delete#{test_run.id}", :action => test_run_path(test_run), :method => 'post'}
+ %input{:type=>:hidden, :name=>'_method', :value=>'delete'}
+ %a{:href => "javascript: $('#delete#{test_run.id}').submit()", :title => 'delete'} X
%td= test_run.status
%td
%a{:href => test_run_path(test_run)}= test_run.id
@@ -8,9 +8,9 @@
%section.actions
- if test_run.complete?
- action_button 'Rerun', test_run_path+'/rerun'
- - if test_run.running?
+ - else
- action_button 'Abort', test_run_path+'/abort'
- - unless test_run.running?
+ - if test_run.complete?
- action_button 'Delete', test_run_path, :delete
%dl.details

0 comments on commit b6f054d

Please sign in to comment.