Sha256: 50a5b9d168884b1c772cb2f512a1f5d3e9c66f64a647d672bc17d13e111dbdea

Contents?: true

Size: 668 Bytes

Versions: 3

Compression:

Stored size: 668 Bytes

Contents

module LolitaHelper
	
	# Classes for div block that is located to the right of menu
	# This is helpful because different positionings within it exist depending on action
  def content_classes
    classes = []
    if params[:action] == "edit" || params[:action] == "new"
    	classes << "with-secondary"
    end
    classes.join(" ")
  end

  def include_application_assets
    result = ""
    Lolita.application.assets.each do |asset_name|
      if attr_name.match(/\.js(\.|$)/)
        result << javascript_include_tag(asset_name)
      elsif attr_name.match(/\.css(\.|$)/)
        result << stylesheet_link_tag(asset_name)
      end
    end
    raw(result)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lolita-3.2.0.rc.5 app/helpers/lolita_helper.rb
lolita-3.2.0.rc.4 app/helpers/lolita_helper.rb
lolita-3.2.0.rc.3 app/helpers/lolita_helper.rb