summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Labuschagne <blabuschagne@gitlab.com>2019-07-02 11:56:36 +0200
committerBrandon Labuschagne <blabuschagne@gitlab.com>2019-07-04 13:25:17 +0200
commitb7e548d9990361d012c4238c4fe17acedd8f6107 (patch)
treef92012f9af23ac6bba90ca79e547989bafe61073
parente049fe0d2ea585818cd4a6a65a1d71cbee365a52 (diff)
downloadgitlab-ce-dropdown-filter-component.tar.gz
Create shared filterable dropdown HAMLdropdown-filter-component
-rw-r--r--app/views/shared/_filterable_dropdown.html.haml10
-rw-r--r--locale/gitlab.pot3
2 files changed, 13 insertions, 0 deletions
diff --git a/app/views/shared/_filterable_dropdown.html.haml b/app/views/shared/_filterable_dropdown.html.haml
new file mode 100644
index 00000000000..d45b7808d0e
--- /dev/null
+++ b/app/views/shared/_filterable_dropdown.html.haml
@@ -0,0 +1,10 @@
+.dropdown{ class: container }
+ %button.dropdown-menu-toggle{ type: "button", data: { toggle: "dropdown"} }
+ %span.dropdown-toggle-text
+ = placeholder
+ = icon("chevron-down")
+ .dropdown-menu.dropdown-select.dropdown-menu-selectable.dropdown-menu-right
+ = dropdown_title(_("Filter results"))
+ = dropdown_filter(_("Search"))
+ = dropdown_content
+ = dropdown_loading
diff --git a/locale/gitlab.pot b/locale/gitlab.pot
index 7e5e2f8df7b..20224462ba2 100644
--- a/locale/gitlab.pot
+++ b/locale/gitlab.pot
@@ -4636,6 +4636,9 @@ msgstr ""
msgid "Filter by two-factor authentication"
msgstr ""
+msgid "Filter results"
+msgstr ""
+
msgid "Filter results by group"
msgstr ""