Module: Golden::Theme::Foundation::TopBarHelper
- Defined in:
- lib/golden/theme/foundation/top_bar_helper.rb
Instance Method Summary collapse
- #foundation_top_bar_dropdown_link_to(text, url = '', options = {}) ⇒ Object
- #foundation_top_bar_dropdown_ul_tag(options = {}, &block) ⇒ Object
Instance Method Details
#foundation_top_bar_dropdown_link_to(text, url = '', options = {}) ⇒ Object
3 4 5 6 |
# File 'lib/golden/theme/foundation/top_bar_helper.rb', line 3 def text, url = '', = {} text = text.html_safe link_to text, url, end |
#foundation_top_bar_dropdown_ul_tag(options = {}, &block) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/golden/theme/foundation/top_bar_helper.rb', line 8 def = {}, &block html_class = .delete :class = { class: "dropdown #{html_class}".strip }.deep_merge foundation_ul_tag , &block end |