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