module Leather::LeatherHelpers

Public Instance Methods

active_class(href, options) click to toggle source
# File lib/leather/leather_helpers.rb, line 3
def active_class(href, options)
  if (options[:nav_id].present? && current_tab?(options[:nav_id][0], options[:nav_id][1])) || current_page?(href)
    'active'
  else
    ''
  end
end
dropdown_nav_item(text, href, options = {}, &block) click to toggle source
modal(id = 'modal', html_options = {}, &block) click to toggle source
modal_body(&block) click to toggle source
modal_header(title = '', &block) click to toggle source
modal_toggle(text, id = 'modal', html_options = {}) click to toggle source
nav_item(text, href, options = {}) click to toggle source
nav_list(html_options = {}, &block) click to toggle source
navbar(title, brand_link, html_options = {}, &block) click to toggle source
navbar_in_container(html_options = {}, &block) click to toggle source
navbar_with_container(html_options = {}, &block) click to toggle source