Sha256: 4187500b96bf107ee39e14021224e8a3c5f4779293b71e8b67021a79112b3809
Contents?: true
Size: 640 Bytes
Versions: 1
Compression:
Stored size: 640 Bytes
Contents
module Jackpot module ApplicationHelper def twitterized_type(type) case type when :alert "alert" when :error "alert alert-error" when :notice "alert alert-success" when :info "alert alert-info" else type.to_s end end def navbar_entry(name, options = {}, html_options = {}, &block) if current_page?(options) content_tag("li", class: "active") { link_to(name, options, html_options, &block) } else content_tag("li") { link_to(name, options, html_options, &block) } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jackpot-0.0.3 | app/helpers/jackpot/application_helper.rb |