Sha256: cc21e012137a7968e1a15399314eb12a1b1cc474d3f634e9afbc3d99c4132f95

Contents?: true

Size: 297 Bytes

Versions: 51

Compression:

Stored size: 297 Bytes

Contents

module Noodall::Admin::AssetsHelper

  def asset_icon(asset)
    icon = case asset.file_ext
    when "doc", "pdf", "txt", "xls"
      "admin/#{asset.file_ext}-icon.png"
    else
      "admin/no-type-icon.png"
    end

    image_tag icon, :title => "#{asset.title} - #{asset.file.name}"
  end

end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
noodall-ui-0.5.15 app/helpers/noodall/admin/assets_helper.rb
noodall-ui-0.5.14 app/helpers/noodall/admin/assets_helper.rb
noodall-ui-0.5.13 app/helpers/noodall/admin/assets_helper.rb
noodall-ui-0.5.12 app/helpers/noodall/admin/assets_helper.rb
noodall-ui-0.5.11 app/helpers/noodall/admin/assets_helper.rb
noodall-ui-0.4.11 app/helpers/noodall/admin/assets_helper.rb
noodall-ui-0.4.10 app/helpers/noodall/admin/assets_helper.rb
noodall-ui-0.5.10 app/helpers/noodall/admin/assets_helper.rb
noodall-ui-0.5.9 app/helpers/noodall/admin/assets_helper.rb
noodall-ui-0.4.9 app/helpers/noodall/admin/assets_helper.rb
noodall-ui-0.5.8 app/helpers/noodall/admin/assets_helper.rb
noodall-ui-0.4.8 app/helpers/noodall/admin/assets_helper.rb
noodall-ui-0.4.7 app/helpers/noodall/admin/assets_helper.rb
noodall-ui-0.5.7 app/helpers/noodall/admin/assets_helper.rb
noodall-ui-0.5.6 app/helpers/noodall/admin/assets_helper.rb
noodall-ui-0.5.5 app/helpers/noodall/admin/assets_helper.rb
noodall-ui-0.5.4 app/helpers/noodall/admin/assets_helper.rb
noodall-ui-0.5.3 app/helpers/noodall/admin/assets_helper.rb
noodall-ui-0.5.2 app/helpers/noodall/admin/assets_helper.rb
noodall-ui-0.5.1 app/helpers/noodall/admin/assets_helper.rb