Sha256: 2eccb7f2743e8b6e5c95b259de72b818d8f8d379c187a95d6133312ecbe5b65e

Contents?: true

Size: 657 Bytes

Versions: 1

Compression:

Stored size: 657 Bytes

Contents

- if asset.content_type.match /image\//
  - if element and element.content_data and not element.content_data.uri.blank?
    = link_to element.content_data.uri do
      = image_tag "#{asset.url}", :width => asset.width, :height => asset.height
  - else   
    = image_tag "#{asset.url}", :width => asset.width, :height => asset.height 
- elsif asset.media_content_type.match /audio\//
  %div{:align => "center"}
    %object{:type => "audio/mpeg", :data => "#{asset.url}", :width => 200, :height => 20}
      %param{:name => "src", :value => "#{asset.url}"}
      %param{:name => "autoplay", :value => "true"}
      %param{:name => "autoStart", :value => "1"}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
humpyard-0.0.1 app/views/humpyard/assets/paperclip_assets/_show.html.haml