result = Mutx::Results::Result.get(result_id) if result result.mark_as_saw! if (result.finished? or result.stopped?) text = "" #text += result.bundle_output.split("\n").join("
") 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() ?>{{text}}