diff options
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/projects/artifacts/_tree_file.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/artifacts/_tree_file.html.haml b/app/views/projects/artifacts/_tree_file.html.haml index 10e238b6ba1..0319fb0af65 100644 --- a/app/views/projects/artifacts/_tree_file.html.haml +++ b/app/views/projects/artifacts/_tree_file.html.haml @@ -1,6 +1,6 @@ - blob = file.blob -- is_external_link = external_url?(blob) -- path_to_file = link_to_artifact(@project, @build, file) +- is_external_link = blob.external_link? +- path_to_file = file_project_job_artifacts_path(@project, @build, path: file.path) %tr.tree-item.js-artifact-tree-row{ data: { link: path_to_file, external_link: "#{is_external_link}" } } %td.tree-item-file-name |