summaryrefslogtreecommitdiff
path: root/app/views/shared/issuable/_search_bar.html.haml
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-01-20 09:49:48 +0000
committerPhil Hughes <me@iamphill.com>2017-01-20 09:49:57 +0000
commit3f17f29a22356d9305f981ae2eaac6b30bcfb8d0 (patch)
tree133de01b4c2744fa9676856cd80a892b3003fb20 /app/views/shared/issuable/_search_bar.html.haml
parent5a41d92b9d73cbc41b649239e40a15955094f77e (diff)
downloadgitlab-ce-3f17f29a22356d9305f981ae2eaac6b30bcfb8d0.tar.gz
Added current user filter to assignee dropdownfilter-assigned-to-me
Adds an option in the assignee filter dropdown that allows the user to filter issues that are assigned to them Closes #26882
Diffstat (limited to 'app/views/shared/issuable/_search_bar.html.haml')
-rw-r--r--app/views/shared/issuable/_search_bar.html.haml4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/shared/issuable/_search_bar.html.haml b/app/views/shared/issuable/_search_bar.html.haml
index 8d7b1d616f4..964ad924014 100644
--- a/app/views/shared/issuable/_search_bar.html.haml
+++ b/app/views/shared/issuable/_search_bar.html.haml
@@ -47,6 +47,10 @@
%li.filter-dropdown-item{ 'data-value' => 'none' }
%button.btn.btn-link
No Assignee
+ - if current_user
+ %li.filter-dropdown-item{ 'data-value' => current_user.to_reference }
+ %button.btn.btn-link
+ Assigned to me
%li.divider
%ul.filter-dropdown{ 'data-dynamic' => true, 'data-dropdown' => true }
%li.filter-dropdown-item