gitlab-org--gitlab-foss/app/views/projects/artifacts/browse.html.haml

35 lines
1.2 KiB
Text
Raw Normal View History

- breadcrumb_title _('Artifacts')
- page_title @path.presence, 'Artifacts', "#{@build.name} (##{@build.id})", 'Jobs'
= render "projects/jobs/header"
- add_to_breadcrumbs(s_('CICD|Jobs'), project_jobs_path(@project))
- add_to_breadcrumbs("##{@build.id}", project_job_path(@project, @build))
2016-01-18 04:18:16 -05:00
.tree-holder
.nav-block
%ul.breadcrumb.repo-breadcrumb
2018-06-08 11:26:05 -04:00
%li.breadcrumb-item
= link_to 'Artifacts', browse_project_job_artifacts_path(@project, @build)
- path_breadcrumbs do |title, path|
2018-06-08 11:26:05 -04:00
%li.breadcrumb-item
= link_to truncate(title, length: 40), browse_project_job_artifacts_path(@project, @build, path)
.tree-controls
= link_to download_project_job_artifacts_path(@project, @build),
rel: 'nofollow', download: '', class: 'btn btn-default download' do
= sprite_icon('download')
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
%thead
%tr
%th Name
%th Size
= render partial: 'tree_directory', collection: @entry.directories(parent: true), as: :directory
= render partial: 'tree_file', collection: @entry.files, as: :file
- if @entry.empty?
.center Empty