Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-03-07 20:28:37 +0300
committerPhil Hughes <me@iamphill.com>2016-03-10 16:54:54 +0300
commitd6e5ed8a97b20eff242b394999a71fb828822d50 (patch)
tree13c06144398ae4878bd687ba1d8ccc26f9ca5d67 /app/helpers/dropdowns_helper.rb
parent04fc44841d3fd4e26d977b88fc1d187f1da79568 (diff)
Extra links in label filter dropdown fotoer
Diffstat (limited to 'app/helpers/dropdowns_helper.rb')
-rw-r--r--app/helpers/dropdowns_helper.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/app/helpers/dropdowns_helper.rb b/app/helpers/dropdowns_helper.rb
index 49c40e31176..5e3ee734314 100644
--- a/app/helpers/dropdowns_helper.rb
+++ b/app/helpers/dropdowns_helper.rb
@@ -1,5 +1,5 @@
module DropdownsHelper
- def dropdown_tag(toggle_text, id: nil, toggle_class: nil, dropdown_class: nil, title: false, filter: false, placeholder: "", data: {}, &block)
+ def dropdown_tag(toggle_text, id: nil, toggle_class: nil, dropdown_class: nil, title: false, filter: false, placeholder: "", footer_content: false, data: {}, &block)
content_tag :div, class: "dropdown" do
toggle_hash = data.merge({toggle: "dropdown"})
@@ -33,7 +33,13 @@ module DropdownsHelper
end
output += content_tag :div, class: "dropdown-content" do
- capture(&block) if block
+ capture(&block) if block && !footer_content
+ end
+
+ if block && footer_content
+ output += content_tag :div, class: "dropdown-footer" do
+ capture(&block)
+ end
end
output += content_tag :div, class: "dropdown-loading" do