running_results = Mutx::Results.running_results_for_task_id(task["_id"])
status = if running_results.size > 0
last_execution = running_results.last
"running"
else
"READY"
end
logged = "true"
color = Mutx::View.color(status)
?>
{{task["name"]}}
|
|
% if status == "running"
{{Mutx::View.icon_for_running last_execution}}
% end
|
% if task["information"]
')}}', null);">
{{Mutx::View.icon_for("info")}}
% end
|
% if ((task["blocked"].eql? "on") || (task["blocked_stop"].eql? "on"))
{{Mutx::View.icon_for("lock")}}
% end
|
% if (task["notifications"].eql? "on")
{{Mutx::View.icon_for("notification")}}
% end
|
% if (Mutx::Results.results_ids_for(task["_id"]).size > 0)
{{Mutx::View.icon_for("result")}}
% end
|
% res = Mutx::Database::MongoConnector.results_for(task["_id"]).first
% if ( (!res.nil?) && (res["file_attached"].eql? "yes") )
{{Mutx::View.icon_for("attachment")}}
%end
|
% if task["cronneable"].eql? "on"
{{Mutx::View.icon_for("cron")}}
{{task["cron_time"]}}'
% end
|
% if task["cronneable"].eql? "on"
% if (task["task_status"].eql? "off")
{{Mutx::View.icon_for("off")}}
% elsif (task["task_status"].eql? "on")
{{Mutx::View.icon_for("on")}}
% end
% end
|