<%# header %>
<%= _('Name') %> |
<%= _('Type') %> |
<%= _('Actions') %> |
<% if @article %>
<% 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 %> |
|
<% end %>
<% @articles.each do |article| %>
<%= 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) %>
|
<% end %>
<%= pagination_links @articles, {:param_name => 'npage', :prev_label => '« ' + _('Previous'), :next_label => _('Next') + ' »', :page_links => true} %>