share/views/partials/dependencies.haml in rbbt-rest-1.8.65 vs share/views/partials/dependencies.haml in rbbt-rest-1.8.66
- old
+ new
@@ -3,11 +3,11 @@
- job.dependencies.each do |dep|
- dep_workflow = dep.workflow
- dep_workflow ||= dep.task.workflow if dep.task
- dep_workflow ||= File.basename(File.dirname(File.dirname(dep.path)))
- str = [dep_workflow, dep.task_name, dep.name].compact * " - "
- - if dep.file(':progress').exists?
- - status = dep.status + " - " + dep.file(:progress).yaml[:last_percent] + "%"
+ - if dep.file(:progress).exists?
+ - status = dep.status.to_s + " - " + dep.file(:progress).yaml[:last_percent].to_s + "%"
- else
- status = dep.status
- name = dep.name
%li
%span.workflow= dep_workflow