Sha256: bec1778fde82cc05e5046044c2e7b28fe91f3d01c6cefbfdf07aa415574962e4

Contents?: true

Size: 1.72 KB

Versions: 1

Compression:

Stored size: 1.72 KB

Contents

%table{ :class => "index", :cellpadding => "0", :cellspacing => "0", :border => "0"}
  %tfoot
    %tr
      %td{:colspan => 5}= t("paperclipped.assets_explanation")
  %thead
    %tr
      - render_region :thead do |thead|
        - thead.thumbnail_header do
          %th.asset
            = t("paperclipped.asset")
        - thead.title_header do
          %th.asset-title
            = t("paperclipped.title")
        - thead.content_type_header do
          %th.content_type
            = t("paperclipped.type")
        - thead.modify_header do
          %th.modify{ :colspan =>"2"}
            = t('modify')

  %tbody
    - unless assets.empty?
      - for asset in assets 
        %tr.node.level-1
          - render_region :tbody, :locals => { :asset => asset } do |tbody|
            - tbody.thumbnail_cell do
              %td.asset
                - asset_id = "asset_#{asset.id.to_s}"
                = link_to image_tag(asset.thumbnail(:icon)), edit_admin_asset_path(asset), :class => 'icon'
            - tbody.title_cell do
              %td.asset-title
                = link_to asset.title, edit_admin_asset_path(asset) 
                 
                %span.caption
                  = asset.caption
            - tbody.content_type_cell do
              %td.content_type
                = asset.asset_content_type
            - tbody.bucket_cell do
              %td.add-to-bucket
                = link_to_remote(t("paperclipped.add_to_bucket"), :url => add_bucket_url(:id => asset))
            - tbody.remove_cell do
              %td.remove
                = link_to t("paperclipped.remove_asset"), remove_admin_asset_path(asset)

    - else
      %tr
        %td.note{ :colspan => "5" } 
          = t("paperclipped.no_assets")

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
radiant-paperclipped-extension-0.8.1 app/views/admin/assets/_asset_table.html.haml