") if result.bundle_output text += result.console_output.split("\n").join("

") if result.console_output #if text.empty? # lines = [] # begin # File.open("ls_#{result.id}.out","r").each_line do |line| # lines << line # end # rescue # lines << "Wait..." # end # text = lines.join("

") #end 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('-_-',' ') git_log = result.git_log.split('Author').first else end javascript = Mote.parse(File.read("#{Mutx::View.path}/javascript.mote"), self, []).call() ?> Result for {{result.task_name}} {{javascript}} % if result

Result for {{result.task_name}} execution {{result.stopped? ? '(Stopped)' : ''}}

Result ID: {{result.id}}
% if Mutx::Support::Configuration.use_git?
Git log: {{git_log}}
% end
Status: {{result.status}}
% if result.timeout
Timeout: Stopped After {{result.timeout}} seconds
% end % if result.started_at
Duration: {{result.elapsed_time}} seconds
% end
Execution Name: {{execution_name}}
Custom parameters:{{custom_params}}
 
Close this window Result Data Execution Data % unless result.status =~ /finished|stopped/ Stop execution % end
% if size_of_lines > 15 % end

                {{text}}
              

% if size_of_lines > 15

% end

Close this window


% else

There is no result with id: {{result_id}}


Close this window
% end