Commit e3ce0230 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Link to pipeline instead of source tree, feedback:

https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5142#note_13164795
parent 85ceb8b7
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment