Sha256: 23996f2bf30274d81d5ecc89a2bb143f8e622ce9807515902e238859d220c9c9

Contents?: true

Size: 807 Bytes

Versions: 20

Compression:

Stored size: 807 Bytes

Contents

<ul class="image_subnav">
  <li><%= link_to "All", admin_attachments_path, :class => "awesome light" %></li>
  <% Attachment.content_types.each do |type| %>
    <li><%= link_to type.pluralize.titleize, admin_attachments_path({:type => type}), :class => "awesome light" %></li>
  <% end %>
</ul>
<% #debugger %>
<% if params[:type] && 
	(
		FileTest.exist?(File.join(::Rails.root.to_s, 'app', 'views', params[:controller],'_'+params[:type]+'.html.erb'))	|| 
		FileTest.exist?(File.join(::Rails.root.to_s, 'vendor', 'plugins', 'soapbox', 'app', 'views', params[:controller],'_'+params[:type]+'.html.erb'))
	) %>
  <%= render "admin/attachments/#{params[:type]}", :collection => collection %>
<% else %>
  <%= render "admin/shared/list", :list_fields => ["id","title","attachment", "attachable"] %>  
<% end %>

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
soapbox-0.2.21 app/views/admin/attachments/index.html.erb
soapbox-0.2.20 app/views/admin/attachments/index.html.erb
soapbox-0.2.18 app/views/admin/attachments/index.html.erb
soapbox-0.2.16 app/views/admin/attachments/index.html.erb
soapbox-0.2.15 app/views/admin/attachments/index.html.erb
soapbox-0.2.14 app/views/admin/attachments/index.html.erb
soapbox-0.2.12 app/views/admin/attachments/index.html.erb
soapbox-0.2.11 app/views/admin/attachments/index.html.erb
soapbox-0.2.10 app/views/admin/attachments/index.html.erb
soapbox-0.2.9 app/views/admin/attachments/index.html.erb
soapbox-0.2.8 app/views/admin/attachments/index.html.erb
soapbox-0.2.7 app/views/admin/attachments/index.html.erb
soapbox-0.2.6 app/views/admin/attachments/index.html.erb
soapbox-0.2.5 app/views/admin/attachments/index.html.erb
soapbox-0.2.4 app/views/admin/attachments/index.html.erb
soapbox-0.2.3 app/views/admin/attachments/index.html.erb
soapbox-0.2.2 app/views/admin/attachments/index.html.erb
soapbox-0.2.1 app/views/admin/attachments/index.html.erb
soapbox-0.2.0 app/views/admin/attachments/index.html.erb
soapbox-0.1.7 app/views/admin/attachments/index.html.erb