<%= _('Profile homepage:') %>
<% if profile.home_page %>
<%= link_to_article(profile.home_page) %>
<%= button_without_text(:'home-not', _('Reset homepage'), { :action => 'set_home_page', :id => nil }, :method => :post) %>
<% else %>
<%= _('Profile Information') %>
<% end %>
<% end %>
<% button_bar(:style => 'margin-bottom: 1em;') do %>
<% parent_id = ((@article && @article.allow_children?) ? @article : nil) %>
<%= modal_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 %>
<%# header %>
<%= _('Name') %> |
<%= _('Type') %> |
<%= _('Last update') %> |
<%= _('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 %>
<%= render 'view_items' %>
<%= pagination_links @articles, {:param_name => 'npage', :page_links => true} %>