Sha256: f68aac629c5e7a7c35fdfcbf30bdbb46a5b56bd91155dc84857861fdccade947

Contents?: true

Size: 366 Bytes

Versions: 2

Compression:

Stored size: 366 Bytes

Contents

module Admin::AssetsHelper
  
  def vignette_tag(asset)
    image_tag(asset.vignette_url)
  end
    
  def image_dimensions_and_size(asset)
    content_tag(:small, "#{asset.width}px x #{asset.height}px | #{number_to_human_size(asset.size)}")
  end
  
  def allow_plain_text_editing?(asset)
    asset.new_record? || asset.stylesheet? || asset.javascript?
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
locomotive_cms-0.0.3.3 app/helpers/admin/assets_helper.rb
locomotive_cms-0.0.3.1 app/helpers/admin/assets_helper.rb