summaryrefslogtreecommitdiff
path: root/app/views/projects/artifacts/browse.html.haml
blob: 7abac2d14e488e8a2b3be60ee0c434004b05b70d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
- 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))

.tree-holder
  .nav-block
    %ul.breadcrumb.repo-breadcrumb
      %li.breadcrumb-item
        = link_to 'Artifacts', browse_project_job_artifacts_path(@project, @build)
      - path_breadcrumbs do |title, path|
        %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

  .tree-content-holder
    %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