diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-05-26 17:55:49 -0500 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-07-07 13:25:58 -0500 |
commit | 338072cc4ba66cd7eb6fbd9541862946e4ae4b75 (patch) | |
tree | 41b4782724653a42328f155edc5cf57b6d227f16 /app/helpers/dropdowns_helper.rb | |
parent | 86d83a3a85dfc252ee5efb8cc630e1a4295adb93 (diff) | |
download | gitlab-ce-338072cc4ba66cd7eb6fbd9541862946e4ae4b75.tar.gz |
Layout for Users Groups and Projects on admin area
Diffstat (limited to 'app/helpers/dropdowns_helper.rb')
-rw-r--r-- | app/helpers/dropdowns_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/dropdowns_helper.rb b/app/helpers/dropdowns_helper.rb index 7c140538012..4566f3782cc 100644 --- a/app/helpers/dropdowns_helper.rb +++ b/app/helpers/dropdowns_helper.rb @@ -39,7 +39,7 @@ module DropdownsHelper end end - def dropdown_toggle(toggle_text, data_attr, options) + def dropdown_toggle(toggle_text, data_attr, options = {}) content_tag(:button, class: "dropdown-menu-toggle #{options[:toggle_class] if options.has_key?(:toggle_class)}", id: (options[:id] if options.has_key?(:id)), type: "button", data: data_attr) do output = content_tag(:span, toggle_text, class: "dropdown-toggle-text") output << icon('chevron-down') |