2011-05-09 10:49:57 +00:00
|
|
|
<% content_for :sidebar do %>
|
|
|
|
<div id='sidebar'><%= render 'layouts/site_map_left_bar' %></div>
|
2010-01-14 10:30:53 +00:00
|
|
|
<% end -%>
|
|
|
|
|
2011-05-09 10:49:57 +00:00
|
|
|
<% content_for :page_specific_javascript do %>
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
|
|
$('a.sidebar_link').live( "click", function(){
|
|
|
|
$(this).removeClass('sidebar_link');
|
|
|
|
$('.sidebar_no_link').addClass('sidebar_link');
|
|
|
|
$('.sidebar_no_link').removeClass('sidebar_no_link');
|
|
|
|
$(this).addClass('sidebar_no_link');
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
<% end -%>
|
|
|
|
|
|
|
|
<% content_for :page_specific_css do %>
|
|
|
|
<style type="text/css">
|
|
|
|
.sidebar_no_link {
|
|
|
|
pointer-events: none;
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%= render 'layouts/page' %>
|
|
|
|
|
|
|
|
<!-- <%= flash_messages %>
|
2011-02-08 02:07:40 +00:00
|
|
|
|
2011-04-13 10:19:51 +00:00
|
|
|
<h1><%= t('admin.list_items') %>: <%= show_parent_items_link unless @parent_item.nil? %></h1>
|
2010-01-14 10:30:53 +00:00
|
|
|
|
2011-04-13 10:19:51 +00:00
|
|
|
<% if !Layout.exist_one? %>
|
|
|
|
<div style='color:red'><%= t('admin.no_layout') %>: <%= link_to t('create').downcase, new_admin_layout_path %></div>
|
|
|
|
<br/>
|
|
|
|
<% else %>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th><%= t('admin.class') %></th>
|
|
|
|
<th><%= t('admin.name') %></th>
|
|
|
|
<th><%= t('admin.title') %></th>
|
|
|
|
<th><%= t('admin.position') %></th>
|
|
|
|
<th><%= t('admin.published?') %></th>
|
|
|
|
<th><%= t('admin.action') %></th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
<% @items.each do |item| %>
|
|
|
|
<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>
|
|
|
|
<% end if @items %>
|
|
|
|
</table>
|
2010-01-14 10:30:53 +00:00
|
|
|
<% end %>
|
|
|
|
|
2011-05-09 10:49:57 +00:00
|
|
|
<%= render :partial => "snippets", :locals => { :snippets => @snippets } %> -->
|