ref: master
app/views/cms/view.html.erb
<%= _('Content management') %>
<% if user.can_change_homepage? && !remove_content_button(:home, profile.home_page) %><%= _('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'), url_for({:action => 'new', :parent_id => parent_id, :cms => true}).html_safe) %> <%= button(:back, _('Back to control panel'), :controller => 'profile_editor', :action => "index") %> <% end %> <% if @article %><%= _('Current folder: ') %> <%= link_to profile.identifier, :action => 'index' %> <% @article.hierarchy.each do |item| %> <%= " / ".html_safe + ((item == @article) ? item.name.html_safe : link_to(item.slug, :id => item.id).html_safe) %> <% end %><% end %>
<%= _('Name') %> | <%= _('Type') %> | <%= _('Last update') %> | <%= _('Actions') %> |
---|---|---|---|
<% if @article.parent %> <%= link_to '.. ('.html_safe + _('parent folder') + ')', {:action => 'view', :id => @article.parent.id}, :class => 'icon-parent-folder' %> <% else %> <%= link_to '.. ('.html_safe + _('parent folder') + ')', {:action => 'index'}, :class => 'icon-parent-folder' %> <% end %> | <%= Folder.short_description %> |