Sha256: 39b0f05b390adeecfb6ddb140d7cef91f6468dd87de31ce9d5bc44d06577c1e5

Contents?: true

Size: 912 Bytes

Versions: 13

Compression:

Stored size: 912 Bytes

Contents

- include_stylesheet 'admin/assets' 

- asset_taggings = @tag.taggings.of_a :asset
- if asset_taggings.any?
  %h2
    Tagged assets
  %table.index
    - asset_taggings.each do |tagging|
      - asset = tagging.tagged
      - if asset
        - dom_id = "tagging_#{tagging.id}"
        %tr{:id => dom_id}
          %td.asset{:style => 'width: 48px'}
            = link_to image_tag(asset.thumbnail(:icon)), edit_admin_asset_path(asset), :class => 'icon'
          %td.asset-title
            = link_to asset.title, edit_admin_asset_path(asset) 
          %td.actions
            = link_to_remote image('minus') + ' detach', |
              :html => { :class => "action", :title => "Detach tag from asset" }, |
              :url => admin_tagging_url(tagging), :method => :delete, |
              :after => "Effect.Fade('#{dom_id}', { duration: 0.5 })", |
              :complete => "Element.remove('#{dom_id}');"

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
radiant-taggable-extension-2.0.5 app/views/admin/tags/_show_assets.html.haml
radiant-taggable-extension-2.0.4 app/views/admin/tags/_show_assets.html.haml
radiant-taggable-extension-2.0.3 app/views/admin/tags/_show_assets.html.haml
radiant-taggable-extension-2.0.2 app/views/admin/tags/_show_assets.html.haml
radiant-taggable-extension-2.0.1 app/views/admin/tags/_show_assets.html.haml
radiant-taggable-extension-2.0.0 app/views/admin/tags/_show_assets.html.haml
radiant-taggable-extension-2.0.0.rc2 app/views/admin/tags/_show_assets.html.haml
radiant-taggable-extension-2.0.0.rc1 app/views/admin/tags/_show_assets.html.haml
radiant-library-extension-2.1.1 app/views/admin/tags/_show_assets.html.haml
radiant-library-extension-2.1.0 app/views/admin/tags/_show_assets.html.haml
radiant-library-extension-2.0.3 app/views/admin/tags/_show_assets.html.haml
radiant-library-extension-2.0.1 app/views/admin/tags/_show_assets.html.haml
radiant-library-extension-2.0.0 app/views/admin/tags/_show_assets.html.haml