if result
result.mark_as_saw! if (result.finished? or result.stopped?)
text = result.console_output.split("\n").join("
") if result.console_output
size_of_lines = text.split("
").size
task = Mutx::Tasks::Task.get(result.task_id)
custom_params = result.custom_params.empty? ? 'Not Defined' : result.custom_params_values.gsub('mutx_custom_params=',"")
execution_name = result.execution_name.empty? ? 'Not Defined' : result.execution_name.gsub('-_-',' ')
end
?>
% if result
{{result.task['type'].capitalize}} {{result.task_name}} result execution {{result.stopped? ? '(Stopped)' : ''}}
ID: {{result.id}}
Status: {{result.status}}
% if result.timeout
Timeout: Stopped After {{result.timeout}} seconds
% end
% if result.started_at
Duration:{{Mutx::View.formatted_for result.elapsed_time}}
% end
Execution Name: {{execution_name}}
Custom parameters:{{custom_params}}
% if size_of_lines > 15
% end
{{text}}
% if size_of_lines > 15
% end
% else
There is no result with id: {{result_id}}
Back
% end