summaryrefslogtreecommitdiff
path: root/app/views/projects
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-07-19 18:03:21 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-07-19 18:03:35 +0800
commite3ce02300bf90451b98479720d1093afe8b7eea8 (patch)
treea8421c501aac5bacfba08f1920aaca55b771a653 /app/views/projects
parent85ceb8b72f5a67d21bc9530fe835fdece98f3d4e (diff)
downloadgitlab-ce-e3ce02300bf90451b98479720d1093afe8b7eea8.tar.gz
Link to pipeline instead of source tree, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5142#note_13164795
Diffstat (limited to 'app/views/projects')
-rw-r--r--app/views/projects/branches/_branch.html.haml2
-rw-r--r--app/views/projects/buttons/_download.html.haml2
-rw-r--r--app/views/projects/repositories/_download_archive.html.haml2
-rw-r--r--app/views/projects/tags/_download.html.haml2
4 files changed, 4 insertions, 4 deletions
diff --git a/app/views/projects/branches/_branch.html.haml b/app/views/projects/branches/_branch.html.haml
index 8f6ddfd9044..e48b78f9eef 100644
--- a/app/views/projects/branches/_branch.html.haml
+++ b/app/views/projects/branches/_branch.html.haml
@@ -40,7 +40,7 @@
%ul.dropdown-menu.dropdown-menu-align-right{ role: 'menu' }
%li.dropdown-header Artifacts
- unless pipeline.latest?
- = " (not latest, but #{link_to(pipeline.short_sha, namespace_project_tree_path(@project.namespace, @project, pipeline.sha))})"
+ = " (not latest, but #{link_to(pipeline.short_sha, namespace_project_pipeline_path(@project.namespace, @project, pipeline))})"
- artifacts.each do |job|
%li
= link_to search_namespace_project_artifacts_path(@project.namespace, @project, branch.name, 'download', job: job.name), rel: 'nofollow' do
diff --git a/app/views/projects/buttons/_download.html.haml b/app/views/projects/buttons/_download.html.haml
index 047931a7fa5..32f911f6b31 100644
--- a/app/views/projects/buttons/_download.html.haml
+++ b/app/views/projects/buttons/_download.html.haml
@@ -20,7 +20,7 @@
- if artifacts.any?
%li.dropdown-header Artifacts
- unless pipeline.latest?
- = " (not latest, but #{link_to(pipeline.short_sha, namespace_project_tree_path(@project.namespace, @project, pipeline.sha))})"
+ = " (not latest, but #{link_to(pipeline.short_sha, namespace_project_pipeline_path(@project.namespace, @project, pipeline))})"
- artifacts.each do |job|
%li
= link_to search_namespace_project_artifacts_path(@project.namespace, @project, @ref, 'download', job: job.name), rel: 'nofollow' do
diff --git a/app/views/projects/repositories/_download_archive.html.haml b/app/views/projects/repositories/_download_archive.html.haml
index 1c03aa0a332..e29d99371c8 100644
--- a/app/views/projects/repositories/_download_archive.html.haml
+++ b/app/views/projects/repositories/_download_archive.html.haml
@@ -31,7 +31,7 @@
- if artifacts.any?
%li.dropdown-header Artifacts
- unless pipeline.latest?
- = " (not latest, but #{link_to(pipeline.short_sha, namespace_project_tree_path(@project.namespace, @project, pipeline.sha))})"
+ = " (not latest, but #{link_to(pipeline.short_sha, namespace_project_pipeline_path(@project.namespace, @project, pipeline))})"
- artifacts.each do |job|
%li
= link_to search_namespace_project_artifacts_path(@project.namespace, @project, ref, 'download', job: job.name), rel: 'nofollow' do
diff --git a/app/views/projects/tags/_download.html.haml b/app/views/projects/tags/_download.html.haml
index 8e5e5cb559b..8acf145049a 100644
--- a/app/views/projects/tags/_download.html.haml
+++ b/app/views/projects/tags/_download.html.haml
@@ -18,7 +18,7 @@
- if artifacts.any?
%li.dropdown-header Artifacts
- unless pipeline.latest?
- = " (not latest, but #{link_to(pipeline.short_sha, namespace_project_tree_path(project.namespace, project, pipeline.sha))})"
+ = " (not latest, but #{link_to(pipeline.short_sha, namespace_project_pipeline_path(project.namespace, project, pipeline))})"
- artifacts.each do |job|
%li
= link_to search_namespace_project_artifacts_path(project.namespace, project, ref, 'download', job: job.name), rel: 'nofollow' do