summaryrefslogtreecommitdiff
path: root/app/views/projects/artifacts/file.html.haml
blob: 808b4acc8f3a79d1af6d12c2168658d337288cd8 (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
- page_title @path, 'Artifacts', "#{@build.name} (##{@build.id})", 'Jobs'

= render "projects/jobs/header"

.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|
        - title = truncate(title, length: 40)
        %li.breadcrumb-item
          - if path == @path
            = link_to file_project_job_artifacts_path(@project, @build, path) do
              %strong= title
          - else
            = link_to title, browse_project_job_artifacts_path(@project, @build, path)


  %article.file-holder
    - blob = @entry.blob
    .js-file-title.file-title-flex-parent
      = render 'projects/blob/header_content', blob: blob

      .file-actions.d-none.d-sm-block
        = render 'projects/blob/viewer_switcher', blob: blob

        .btn-group{ role: "group" }<
          = copy_blob_source_button(blob)
          = download_blob_button(blob)

    = render 'projects/blob/content', blob: blob