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

Version Path
beef-has_assets-0.1.1 app/views/admin/assets/_browser.html.erb
beef-has_assets-0.2.0 app/views/admin/assets/_browser.html.erb
beef-has_assets-0.2.1 app/views/admin/assets/_browser.html.erb
beef-has_assets-0.2.10 app/views/admin/assets/_browser.html.erb
beef-has_assets-0.2.2 app/views/admin/assets/_browser.html.erb
beef-has_assets-0.2.3 app/views/admin/assets/_browser.html.erb
beef-has_assets-0.2.5 app/views/admin/assets/_browser.html.erb
beef-has_assets-0.2.6 app/views/admin/assets/_browser.html.erb
beef-has_assets-0.2.7 app/views/admin/assets/_browser.html.erb
beef-has_assets-0.2.8 app/views/admin/assets/_browser.html.erb
beef-has_assets-0.2.9 app/views/admin/assets/_browser.html.erb
beef-has_assets-0.3.1 app/views/admin/assets/_browser.html.erb
beef-has_assets-0.3.2 app/views/admin/assets/_browser.html.erb
beef-has_assets-0.3.3 app/views/admin/assets/_browser.html.erb
beef-has_assets-0.3.4 app/views/admin/assets/_browser.html.erb
beef-has_assets-0.3.5 app/views/admin/assets/_browser.html.erb
beef-has_assets-0.3.6 app/views/admin/assets/_browser.html.erb
beef-has_assets-0.3.7 app/views/admin/assets/_browser.html.erb
beef-has_assets-0.3.8 app/views/admin/assets/_browser.html.erb
beef-has_assets-0.3.9 app/views/admin/assets/_browser.html.erb