summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-04-15 16:09:34 +0100
committerPhil Hughes <me@iamphill.com>2016-04-26 09:03:04 +0100
commit6ac549c1dea7a30d6c2245024879ec5761c40061 (patch)
tree5851bd0f36512a6a129ea7f8c33acabef19f9555
parentaa316cbfff8a3a1c416a3de6054608c96106d39f (diff)
downloadgitlab-ce-6ac549c1dea7a30d6c2245024879ec5761c40061.tar.gz
Use helper method
-rw-r--r--app/views/search/_filter.html.haml10
1 files changed, 2 insertions, 8 deletions
diff --git a/app/views/search/_filter.html.haml b/app/views/search/_filter.html.haml
index 678d620d21b..ef1c0296d49 100644
--- a/app/views/search/_filter.html.haml
+++ b/app/views/search/_filter.html.haml
@@ -12,10 +12,7 @@
Any
= icon("chevron-down")
.dropdown-menu.dropdown-select.dropdown-menu-selectable.dropdown-menu-align-right
- .dropdown-title
- %span Filter results by group
- %button.dropdown-title-button.dropdown-menu-close{ aria: { label: "Close" } }
- = icon('times')
+ = dropdown_title("Filter results by group")
= dropdown_filter("Search groups")
= dropdown_content
= dropdown_loading
@@ -30,10 +27,7 @@
Any
= icon("chevron-down")
.dropdown-menu.dropdown-select.dropdown-menu-selectable.dropdown-menu-align-right
- .dropdown-title
- %span Filter results by project
- %button.dropdown-title-button.dropdown-menu-close{aria: {label: "Close"}}
- = icon('times')
+ = dropdown_title("Filter results by project")
= dropdown_filter("Search projects")
= dropdown_content
= dropdown_loading