Sha256: 570db5d0e5a957407a67eae8df147f463aa9bbfcac61edd5e3d03d06e39fc5e5

Contents?: true

Size: 1.43 KB

Versions: 6

Compression:

Stored size: 1.43 KB

Contents

%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)))
    - 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?
      - pgr = dep.file(:progress).yaml
      - if pgr[:last_percent]
        - pgr_str = " - " + pgr[:last_percent].to_s + "%"
      - else
        - pgr_str = " - " + pgr[:ticks].to_s 
      - status = dep_status.to_s + pgr_str
    - else
      - status = dep_status
    - name = dep.name
    %li
      %span.workflow= dep_workflow
      %span.task= dep.task_name
      %span.name
        - if String === dep_workflow
          - wf ||= begin
            - Kernel.const_get dep_workflow
            - rescue
        - elsif Module === dep_workflow
          - wf = dep_workflow

        - if Open.remote? dep.path
          - url = path.split("?").first
          %a(href=url) #{ name }  

        - elsif wf and wf.task_exports.include? dep.task_name.to_sym
          - url = "/" + [dep_workflow.to_s, dep.task_name.to_s, dep.name.to_s] * "/"
          %a(href=url) #{ name }  

        - else
          = name 


      %span.status(class="#{dep_status}") [#{status}]

      - if dep.dependencies.any?
        = partial_render('partials/dependencies', :job => dep)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rbbt-rest-1.8.73 share/views/partials/dependencies.haml
rbbt-rest-1.8.72 share/views/partials/dependencies.haml
rbbt-rest-1.8.71 share/views/partials/dependencies.haml
rbbt-rest-1.8.70 share/views/partials/dependencies.haml
rbbt-rest-1.8.69 share/views/partials/dependencies.haml
rbbt-rest-1.8.68 share/views/partials/dependencies.haml