% content_for :secondary do %>
- <%= link_to t(:new_page, :scope => :admin), new_admin_page_path( :parent_name => @parent_item.name ), :class => 'button positive' %>
- <%= link_to t(:new_link, :scope => :admin), new_admin_link_path( :parent_name => @parent_item.name ) %>
- <%= link_to t(:new_snippet, :scope => :admin ), new_admin_snippet_path( :parent_name => @parent_item.name ), :class => 'button positive' %>
<% end -%>
Listing items: <%= show_parent_items_link(@parent_item) %>
Class |
Name |
Title |
Position |
Published? |
Action |
|
<% @items.each do |item| %>
<%= render :partial => item.class.to_s.downcase, :locals => { :item => item } %>
<% end %>
<%= render :partial => "snippets", :locals => { :snippets => @snippets } %>