From c5df14ff988e930eeeea129b642b9515ded2884e Mon Sep 17 00:00:00 2001
From: Alfredo Sumaran <alfredo@gitlab.com>
Date: Tue, 1 Mar 2016 21:07:08 -0500
Subject: [PATCH] Add link to open merge requests

---
 app/views/projects/labels/_label.html.haml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/app/views/projects/labels/_label.html.haml b/app/views/projects/labels/_label.html.haml
index 5b35acc66c0..f7ddd30c5a9 100644
--- a/app/views/projects/labels/_label.html.haml
+++ b/app/views/projects/labels/_label.html.haml
@@ -2,6 +2,10 @@
   = render "shared/label_row", label: label
 
   .pull-right
+    %strong.append-right-20
+      = link_to_label(label, type: :merge_request) do
+        = pluralize label.open_merge_requests_count, 'open merge request'
+
     %strong.append-right-20
       = link_to_label(label) do
         = pluralize label.open_issues_count, 'open issue'
-- 
GitLab