Sha256: d5593fb618d4e167f28f9134f2380e9e1fd72e7d7c62e8c01c3986c27d1808a4

Contents?: true

Size: 638 Bytes

Versions: 33

Compression:

Stored size: 638 Bytes

Contents

module Mtdevise
  module ApplicationHelper
  
    # Helper for Page Title
    def phc_title(phc_page_title)
      content_for :phc_title, phc_page_title.to_s
    end
    
    # Helper for Page Title Tag
    def phc_title_tagline(phc_page_title_tagline)
      content_for :phc_title_tagline, phc_page_title_tagline.to_s
    end
    
    # Bootstrap Notification System
    def flash_class(level)
      case level.to_sym
        when :notice then "alert alert-info"
        when :success then "alert alert-success"
        when :error then "alert alert-danger"
        when :alert then "alert alert-warning"
      end
    end
    
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
mtdevise-6.0.0 app/helpers/mtdevise/application_helper.rb
mtdevise-5.1.2 app/helpers/mtdevise/application_helper.rb
mtdevise-5.1.1 app/helpers/mtdevise/application_helper.rb
mtdevise-5.1.0 app/helpers/mtdevise/application_helper.rb
mtdevise-5.0.0 app/helpers/mtdevise/application_helper.rb
mtdevise-5.0.0b app/helpers/mtdevise/application_helper.rb
mtdevise-4.1.5 app/helpers/mtdevise/application_helper.rb
mtdevise-4.1.4 app/helpers/mtdevise/application_helper.rb
mtdevise-4.1.2 app/helpers/mtdevise/application_helper.rb
mtdevise-4.1.1 app/helpers/mtdevise/application_helper.rb
mtdevise-4.1.0 app/helpers/mtdevise/application_helper.rb
mtdevise-4.0.0 app/helpers/mtdevise/application_helper.rb
mtdevise-3.10.2 app/helpers/mtdevise/application_helper.rb