Module: Golden::Theme::Foundation::TopBarHelper

Defined in:
lib/golden/theme/foundation/top_bar_helper.rb

Instance Method Summary collapse

Instance Method Details



3
4
5
6
# File 'lib/golden/theme/foundation/top_bar_helper.rb', line 3

def foundation_top_bar_dropdown_link_to text, url = '', options = {}
  text = text.html_safe
  link_to text, url, options
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 foundation_top_bar_dropdown_ul_tag options = {}, &block
  html_class = options.delete :class
  options = {
    class: "dropdown #{html_class}".strip
  }.deep_merge options
  foundation_ul_tag options, &block
end