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