Sha256: 793366750373e61597ca8bcf089523e679610d6e9d3bfffe79d52b3ba60ce4f5
Contents?: true
Size: 1.04 KB
Versions: 23
Compression:
Stored size: 1.04 KB
Contents
<% content_for :header do %> <%= javascript_include_tag 'admin/assets', 'swfupload', 'upload_progress' %> <% end -%> <dl id="asset-browser"> <% asset_types.each do |asset_type, assets| %> <dt class="<%= asset_type.split('/').first.parameterize %>" id="<%= asset_type.parameterize %>-<%= assets.first.id %>"><%= asset_type %></dt> <dd id="<%= asset_type.parameterize %>-description"> <h3 class="type-heading"><%= asset_type %></h3> <ul id="<%= asset_type.parameterize %>-list" class="asset-list"> <% for asset in assets -%> <li class="<%= asset.content_type.gsub('/', ' ') %>" id="browser-asset-<%= asset.id %>"> <% if asset.content_type =~ /image/ -%> <%= render :partial => "admin/assets/image", :locals => { :asset => asset, :for_content => for_content } %> <% else -%> <%= render :partial => "admin/assets/document", :locals => { :asset => asset, :for_content => for_content } %> <% end -%> </li> <% end -%> </ul> </dd> <% end -%> </dl> <%= javascript_tag "new AssetBrowser('#{@grouping}', '#{params[:folder]}');" %>
Version data entries
23 entries across 23 versions & 1 rubygems