<%# header %>
<%= _('Name') %> |
<%= _('Type') %> |
<%= _('Actions') %> |
<%# folders %>
<% for folder in @folders %>
<%= image_tag(icon_for_article(folder)) %>
<%= link_to folder.name, :action => 'view', :id => folder.id %>
|
<%= folder.class.short_description %>
|
<%= link_to _('Properties'), :action => 'edit', :id => folder.id %>
<%= link_to _('Public view'), folder.url %>
<%= link_to _('Use as homepage'), { :action => 'set_home_page', :id => folder.id }, :method => :post %>
<%= link_to _('Delete'), { :action => 'destroy', :id => folder.id }, :method => :post, :confirm => _('Are you sure that you want to remove this folder? Note that all the items inside it will also be removed!') %>
|
<% end %>
<%# non-folder subitems %>
<% unless @folders.empty? %>
|
<% end %>
<% for item in @subitems %>
<%= image_tag(icon_for_article(item)) %>
<%= link_to item.name, :action => 'edit', :id => item.id %>
|
<%= item.class.short_description %>
|
<%= link_to _('Edit'), :action => 'edit', :id => item.id %>
<%= link_to _('Public view'), item.url %>
<%= link_to _('Spread this'), :action => 'publish', :id => item.id %>
<%= link_to _('Use as homepage'), { :action => 'set_home_page', :id => item.id }, :method => :post %>
<%= link_to _('Delete'), { :action => 'destroy', :id => item.id }, :method => :post, :confirm => _('Are you sure that you want to remove this item?') %>
|
<% end %>
<% if @subitems.empty? || @folders.empty? %>
<%= _('None') %> |
<% end %>