Sha256: 8af8d0a2a46ed1cbfe44ef819106a344b161a9aa6bba780cd5bcb0e491aba149
Contents?: true
Size: 818 Bytes
Versions: 4
Compression:
Stored size: 818 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 %> <div class="clear"></div> </ul> <% 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
4 entries across 4 versions & 1 rubygems