2017-09-04 10:47:19 -04:00
|
|
|
- breadcrumb_title _('Artifacts')
|
2017-05-02 18:47:28 -04:00
|
|
|
- page_title @path.presence, 'Artifacts', "#{@build.name} (##{@build.id})", 'Jobs'
|
2015-12-17 09:17:00 -05:00
|
|
|
|
2018-10-17 06:34:19 -04:00
|
|
|
= render "projects/jobs/header"
|
2015-12-21 08:50:03 -05:00
|
|
|
|
2017-09-25 04:55:21 -04:00
|
|
|
- add_to_breadcrumbs(s_('CICD|Jobs'), project_jobs_path(@project))
|
2019-03-27 07:14:33 -04:00
|
|
|
- add_to_breadcrumbs("##{@build.id}", project_job_path(@project, @build))
|
2017-09-04 10:47:19 -04:00
|
|
|
|
2016-01-18 04:18:16 -05:00
|
|
|
.tree-holder
|
2017-05-02 18:47:28 -04:00
|
|
|
.nav-block
|
|
|
|
%ul.breadcrumb.repo-breadcrumb
|
2018-06-08 11:26:05 -04:00
|
|
|
%li.breadcrumb-item
|
2017-06-29 13:06:35 -04:00
|
|
|
= link_to 'Artifacts', browse_project_job_artifacts_path(@project, @build)
|
2017-05-02 18:47:28 -04:00
|
|
|
- path_breadcrumbs do |title, path|
|
2018-06-08 11:26:05 -04:00
|
|
|
%li.breadcrumb-item
|
2017-06-29 13:06:35 -04:00
|
|
|
= link_to truncate(title, length: 40), browse_project_job_artifacts_path(@project, @build, path)
|
2017-05-02 18:47:28 -04:00
|
|
|
|
2017-07-18 12:31:13 -04:00
|
|
|
.tree-controls
|
|
|
|
= link_to download_project_job_artifacts_path(@project, @build),
|
|
|
|
rel: 'nofollow', download: '', class: 'btn btn-default download' do
|
2017-11-16 14:34:15 -05:00
|
|
|
= sprite_icon('download')
|
2017-07-18 12:31:13 -04:00
|
|
|
Download artifacts archive
|
|
|
|
|
2016-12-23 04:37:12 -05:00
|
|
|
.tree-content-holder
|
2016-01-18 04:18:16 -05:00
|
|
|
%table.table.tree-table
|
2015-12-21 08:50:03 -05:00
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Name
|
2016-01-04 09:07:49 -05:00
|
|
|
%th Size
|
2016-01-13 15:17:28 -05:00
|
|
|
= render partial: 'tree_directory', collection: @entry.directories(parent: true), as: :directory
|
|
|
|
= render partial: 'tree_file', collection: @entry.files, as: :file
|
2015-12-28 04:35:51 -05:00
|
|
|
|
2016-01-13 15:17:28 -05:00
|
|
|
- if @entry.empty?
|
2015-12-28 04:35:51 -05:00
|
|
|
.center Empty
|