<%= _('Content management') %>

<% button_bar(:style => 'margin-bottom: 1em;') do %> <% parent_id = ((@article && @article.allow_children?) ? @article : nil) %> <%= lightbox_button('new', _('New content'), :action => 'new', :parent_id => parent_id, :cms => true) %> <%= button(:back, _('Back to control panel'), :controller => 'profile_editor', :action => "index") %> <% end %> <% if @article %>
<%= _('Current folder: ') %> <%= link_to profile.identifier, :action => 'index' %> <%= @article.hierarchy.map {|item| " / " + ((item == @article) ? item.name : link_to(item.slug, :id => item.id)) } %>
<% end %> <%# header %> <% if @article %> <% end %> <% @articles.each do |article| %> <% end %>
<%= _('Name') %> <%= _('Type') %> <%= _('Actions') %>
<% if @article.parent %> <%= link_to '.. (' + _('parent folder') + ')', {:action => 'view', :id => @article.parent.id}, :class => 'icon-parent-folder' %> <% else %> <%= link_to '.. (' + _('parent folder') + ')', {:action => 'index'}, :class => 'icon-parent-folder' %> <% end %> <%= Folder.short_description %>
<%= link_to_article(article) %> <%= article.class.short_description %> <%= button_without_text :edit, _('Edit'), :action => 'edit', :id => article.id %> <%= button_without_text :eyes, _('Public view'), article.view_url %> <%= display_spread_button(profile, article) unless article.folder? %> <% if !environment.enabled?('cant_change_homepage') %> <%= button_without_text :home, _('Use as homepage'), { :action => 'set_home_page', :id => article.id }, :method => :post %> <% end %> <%= display_delete_button(article) %>
<%= pagination_links @articles, {:param_name => 'npage', :prev_label => '« ' + _('Previous'), :next_label => _('Next') + ' »', :page_links => true} %>