share/views/partials/dependencies.haml in rbbt-rest-1.8.74 vs share/views/partials/dependencies.haml in rbbt-rest-1.8.75
- old
+ new
@@ -1,6 +1,8 @@
+- cache = {} if not defined?(cache) or cache.nil?
+
%ul.dependencies
- 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)))
@@ -41,6 +43,6 @@
%span.status(class="#{dep_status}") [#{status}]
- if dep.dependencies.any?
- = partial_render('partials/dependencies', :job => dep)
+ = cache[dep.path] ||= partial_render('partials/dependencies', :job => dep, :cache => cache)