Sha256: e5afc3585c3ca1589062411842b9918c5bc47c803145c9bd62017db0e31ab9c9

Contents?: true

Size: 1.43 KB

Versions: 11

Compression:

Stored size: 1.43 KB

Contents

- asset = attachment.asset
- asset_type = asset.image? ? "image" : "link"
- dom_id = "attachment_#{attachment.id}"

%li{ :id => dom_id }
  %div{ :class => "#{asset_type} asset", :id => "asset_#{asset.id}"}
    = link_to image_tag(asset.thumbnail(:thumbnail)), asset.asset.url(), :onclick => "return false;", :class => "bucket_link", :title => asset.title
  - Asset.thumbnail_sizes.each do |size|
    %div{:class => "image asset resized", :id => "asset_#{size[0].to_s}_#{asset.id}"}
      = link_to "#{image_tag('/images/admin/tmp_thumbnail_icon.png', :height => "18px", :style => "padding: 0")} #{size[0]}", asset.asset.url(size[0]), :onclick => "return false;", :class => "bucket_link"
  .info{ :id => "#{dom_id}_info" }
    %strong
      = link_to image_tag('/images/assets/edit.png'), edit_admin_asset_path(asset), :class => "edit_asset", :title => t("paperclipped.edit_asset", :asset => asset.title)
    - if @page
      = link_to_remote image_tag('/images/assets/delete.png'), :html => { :class => "remove_asset", :title => t("paperclipped.remove_from_page") }, :url => remove_page_asset_url(:asset => asset.id, :page => @page.id), | 
        :confirm => t("paperclipped.confirm_remove_from_page"), |
        :after => "Effect.Fade('#{dom_id}', { duration: 0.5 })", :complete => "Element.remove('#{dom_id}'); Element.highlight('assets')" |
      = image_tag "/images/assets/reorder_assets.png", :class => "reorder", :title => t("paperclipped.reorder")
%script

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
radiant-ck_editor_filter-extension-0.2.9 app/views/admin/assets/_asset.html.haml
radiant-ck_editor_filter-extension-0.2.8 app/views/admin/assets/_asset.html.haml
radiant-ck_editor_filter-extension-0.2.7 app/views/admin/assets/_asset.html.haml
radiant-ck_editor_filter-extension-0.2.6 app/views/admin/assets/_asset.html.haml
radiant-ck_editor_filter-extension-0.2.5 app/views/admin/assets/_asset.html.haml
radiant-ck_editor_filter-extension-0.2.4 app/views/admin/assets/_asset.html.haml
radiant-ck_editor_filter-extension-0.2.3 app/views/admin/assets/_asset.html.haml
radiant-ck_editor_filter-extension-0.2.2 app/views/admin/assets/_asset.html.haml
radiant-ck_editor_filter-extension-0.2.1 app/views/admin/assets/_asset.html.haml
radiant-ck_editor_filter-extension-0.2.0 app/views/admin/assets/_asset.html.haml
radiant-ck_editor_filter-extension-0.1.1 app/views/admin/assets/_asset.html.haml