Sha256: 070a9b4fafffdfaae90c0464b598ce5ab985475c88d31128a30909633d7249dd

Contents?: true

Size: 1.02 KB

Versions: 11

Compression:

Stored size: 1.02 KB

Contents

- new_info = {}
- info.each{|k,v| new_info[k] = v unless k.to_s == 'dependencies'}
= hash2dl(new_info)

- if info[:dependencies] and info[:dependencies].any?
  %h3 Dependencies
  = partial_render('partials/dependencies', :job => job)
  -#%ul

    - task_exports = workflow.synchronous_exports + workflow.asynchronous_exports
    - task_exports = task_exports.collect{|t| t.to_s}
    -# info[:dependencies].each do |task,name,path|
      - dep = Step.new path
      - d_workflow = dep.workflow || "Unknown Workflow"
      - wf = workflow if d_workflow.nil? || d_workflow.to_s == workflow.to_s
      - if wf.nil? and d_workflow
        - wf ||= begin
          - Kernel.const_get d_workflow
          - rescue

      %li
        (#{d_workflow}##{task}) 
        - if Open.remote? path
          - url = path.split("?").first
          %a(href=url) #{ name }  
        - elsif wf and wf.task_exports.include? task
          - url = "/" + [d_workflow.to_s, task.to_s, name.to_s] * "/"
          %a(href=url) #{ name }  
        - else
          = name 

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rbbt-rest-1.8.73 share/views/job_info.haml
rbbt-rest-1.8.72 share/views/job_info.haml
rbbt-rest-1.8.71 share/views/job_info.haml
rbbt-rest-1.8.70 share/views/job_info.haml
rbbt-rest-1.8.69 share/views/job_info.haml
rbbt-rest-1.8.68 share/views/job_info.haml
rbbt-rest-1.8.67 share/views/job_info.haml
rbbt-rest-1.8.66 share/views/job_info.haml
rbbt-rest-1.8.65 share/views/job_info.haml
rbbt-rest-1.8.64 share/views/job_info.haml
rbbt-rest-1.8.63 share/views/job_info.haml