summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2017-01-30 14:01:02 -0600
committerAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2017-01-30 14:01:02 -0600
commitb61b45a7596b3f20aa1a0d264e6ba3c7af844bac (patch)
tree6470a7626402ea7b33a80c12b48c9f6b372c0569
parentd8b8168623ae780b72723546524cce0aae979556 (diff)
downloadgitlab-ce-26982-improve-pipeline-status-icon-linking-in-widgets.tar.gz
Link to pipeline page from commit widget26982-improve-pipeline-status-icon-linking-in-widgets
-rw-r--r--app/views/projects/commit/_commit_box.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/commit/_commit_box.html.haml b/app/views/projects/commit/_commit_box.html.haml
index 2b1c4e28ce2..56f2c1529fe 100644
--- a/app/views/projects/commit/_commit_box.html.haml
+++ b/app/views/projects/commit/_commit_box.html.haml
@@ -64,10 +64,10 @@
- if @commit.status
.well-segment.pipeline-info
%div{ class: "icon-container ci-status-icon-#{@commit.status}" }
- = link_to pipelines_namespace_project_commit_path(@project.namespace, @project, @commit.id) do
+ = link_to namespace_project_pipeline_path(@project.namespace, @project, @commit.pipelines.last.id) do
= ci_icon_for_status(@commit.status)
Pipeline
- = link_to "##{@commit.pipelines.last.id}", pipelines_namespace_project_commit_path(@project.namespace, @project, @commit.id), class: "monospace"
+ = link_to "##{@commit.pipelines.last.id}", namespace_project_pipeline_path(@project.namespace, @project, @commit.pipelines.last.id), class: "monospace"
for
= link_to @commit.short_id, namespace_project_commit_path(@project.namespace, @project, @commit), class: "monospace"
%span.ci-status-label