Sha256: 3477c5442a0c03187d7f60f8f7c5cad7f2cdbd4d553231e2c4385c9a418bef3b

Contents?: true

Size: 740 Bytes

Versions: 65

Compression:

Stored size: 740 Bytes

Contents

- files = job.files 
- task = job.task_name
- workflow = job.workflow
- jobname = job.name
- files.reject!{|f| File.basename(File.dirname(f)) == ".html"}

- if files.any?
  - files_by_dir = {}
  - files.each do |file|
    - dir = File.dirname(file)
    - files_by_dir[dir] ||= []
    - files_by_dir[dir]  << file

  - (files_by_dir["."] || []).sort.each do |file|
    %a.small.ui.button(href="/#{[workflow.to_s, task, jobname, "file", file] * "/"}")= file
  - (files_by_dir.keys - ["."]).each do |dir|
    %dl
      %dt.ui.header #{dir}/
      %dd
        .ui.buttons
          - files_by_dir[dir].each do |file|
            %a.small.ui.button(href="/#{[workflow.to_s, task, jobname, "file", file] * "/"}")= File.basename(file)
          

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
rbbt-rest-1.8.146 share/views/job_files.haml
rbbt-rest-1.8.145 share/views/job_files.haml
rbbt-rest-1.8.144 share/views/job_files.haml
rbbt-rest-1.8.143 share/views/job_files.haml
rbbt-rest-1.8.142 share/views/job_files.haml
rbbt-rest-1.8.140 share/views/job_files.haml
rbbt-rest-1.8.139 share/views/job_files.haml
rbbt-rest-1.8.138 share/views/job_files.haml
rbbt-rest-1.8.137 share/views/job_files.haml
rbbt-rest-1.8.136 share/views/job_files.haml
rbbt-rest-1.8.135 share/views/job_files.haml
rbbt-rest-1.8.134 share/views/job_files.haml
rbbt-rest-1.8.133 share/views/job_files.haml
rbbt-rest-1.8.132 share/views/job_files.haml
rbbt-rest-1.8.131 share/views/job_files.haml
rbbt-rest-1.8.130 share/views/job_files.haml
rbbt-rest-1.8.129 share/views/job_files.haml
rbbt-rest-1.8.126 share/views/job_files.haml
rbbt-rest-1.8.123 share/views/job_files.haml
rbbt-rest-1.8.122 share/views/job_files.haml