Read about our upcoming Code of Conduct on this issue

This instance will be upgraded to Heptapod 0.28.1 on 2022-01-26 at 16:00 UTC+1 (a few minutes of down time)

browse.html.haml 1.18 KB
Newer Older
1
- breadcrumb_title _('Artifacts')
2
- page_title @path.presence, 'Artifacts', "#{@build.name} (##{@build.id})", 'Jobs'
3

4
= render "projects/jobs/header"
5

6
- add_to_breadcrumbs(s_('CICD|Jobs'), project_jobs_path(@project))
7
- add_to_breadcrumbs("##{@build.id}", project_job_path(@project, @build))
8

9
.tree-holder
10
11
  .nav-block
    %ul.breadcrumb.repo-breadcrumb
Clement Ho's avatar
Clement Ho committed
12
      %li.breadcrumb-item
13
        = link_to 'Artifacts', browse_project_job_artifacts_path(@project, @build)
14
      - path_breadcrumbs do |title, path|
Clement Ho's avatar
Clement Ho committed
15
        %li.breadcrumb-item
16
          = link_to truncate(title, length: 40), browse_project_job_artifacts_path(@project, @build, path)
17

18
    .tree-controls<
19
20
      = link_to download_project_job_artifacts_path(@project, @build),
        rel: 'nofollow', download: '', class: 'btn btn-default download' do
21
        = sprite_icon('download')
22
23
        Download artifacts archive

24
  .tree-content-holder
25
    %table.table.tree-table
26
27
28
      %thead
        %tr
          %th Name
29
          %th Size
30
31
      = render partial: 'tree_directory', collection: @entry.directories(parent: true), as: :directory
      = render partial: 'tree_file', collection: @entry.files, as: :file
32

33
- if @entry.empty?
34
  .center Empty