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