2010-01-14 10:30:53 +00:00
|
|
|
<% content_for :secondary do %>
|
|
|
|
<ul class="list">
|
2010-01-18 07:52:52 +00:00
|
|
|
<li><%= link_to t(:new_page, :scope => :admin), new_admin_page_path( :parent_name => @parent_item.name ), :class => 'button positive' %></li>
|
|
|
|
<li><%= link_to t(:new_link, :scope => :admin), new_admin_link_path( :parent_name => @parent_item.name ) %>
|
|
|
|
<li><%= link_to t(:new_snippet, :scope => :admin ), new_admin_snippet_path( :parent_name => @parent_item.name ), :class => 'button positive' %></li>
|
2010-01-14 10:30:53 +00:00
|
|
|
</ul>
|
|
|
|
<% end -%>
|
|
|
|
|
2010-01-18 07:52:52 +00:00
|
|
|
<h1>Listing items: <%= show_parent_items_link(@parent_item) %></h1>
|
2010-01-14 10:30:53 +00:00
|
|
|
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th>Class</th>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Title</th>
|
|
|
|
<th>Position</th>
|
|
|
|
<th>Published?</th>
|
|
|
|
<th>Action</th>
|
2010-02-22 08:10:13 +00:00
|
|
|
<th></th>
|
2010-01-14 10:30:53 +00:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<% @items.each do |item| %>
|
2010-02-22 08:10:13 +00:00
|
|
|
<tr>
|
|
|
|
<%= render :partial => item.class.to_s.downcase, :locals => { :item => item } %>
|
|
|
|
<!--<td><%= link_to t(:move_up, :scope => :admin), up_admin_item_path(item), :method => :put %> |
|
|
|
|
<%= link_to t(:move_down, :scope => :admin), down_admin_item_path(item), :method => :put %></td>-->
|
|
|
|
</tr>
|
2010-01-14 10:30:53 +00:00
|
|
|
<% end %>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<%= render :partial => "snippets", :locals => { :snippets => @snippets } %>
|