share/views/partials/dependencies.haml in rbbt-rest-1.8.66 vs share/views/partials/dependencies.haml in rbbt-rest-1.8.67

- old
+ new

@@ -3,14 +3,16 @@ - 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 * " - " + - dep_status = "done" if dep.path.exists? + - dep_status ||= dep.status - if dep.file(:progress).exists? - - status = dep.status.to_s + " - " + dep.file(:progress).yaml[:last_percent].to_s + "%" + - status = dep_status.to_s + " - " + dep.file(:progress).yaml[:last_percent].to_s + "%" - else - - status = dep.status + - status = dep_status - name = dep.name %li %span.workflow= dep_workflow %span.task= dep.task_name %span.name @@ -31,9 +33,9 @@ - else = name - %span.status(class="#{dep.status}") [#{status}] + %span.status(class="#{dep_status}") [#{status}] - if dep.dependencies.any? = partial_render('partials/dependencies', :job => dep)