ref: master
app/views/templates/index.html.erb
<%= _('Edit Templates') %>
<%= _('Manage the templates used on creation of profiles') %> <% list_of_templates = [[_('Person') , environment.person_templates , 'person' ], [_('Community') , environment.communities.templates, 'community' ], [_('Enterprise'), environment.enterprises.templates, 'enterprise']] %> <% list_of_templates.each do |title, templates, kind|%><% end %> <%= button_bar do %> <%= button :back, _('Back to admin panel'), :controller => 'admin_panel' %> <% end %><%= title %>
<%= button :add, _('New...'), {:action => "create_#{kind}_template"}, :title => _("Create a new template for %s").html_safe % title.downcase %>
<% templates.each do |template| %> <%= _('Template') %> <%= _('Actions') %> <% end %> <%#= image_tag "icons-app/#{kind}-icon.png" %> <%= link_to(template.name, {:controller => 'profile_editor', :profile => template.identifier}, :title => _('Edit template "%s"').html_safe % template.name ) %> <% if environment.is_default_template?(template) %> <%= _('is the default template') %> <% else %> <%= link_to(_('Set as default'), {:action => "set_#{kind}_as_default", :template_id => template.id}, :title => _('Set %s template as default').html_safe % template.name ) %> <% end %> <%= button_without_text 'edit', _('Edit settings'), {:controller => 'profile_editor', :profile => template.identifier, :action => 'edit'} %> <%= button_without_text 'welcome-page', _('Edit welcome page'), {:controller => 'profile_editor', :profile => template.identifier, :action => 'welcome_page'} %> <%= button_without_text 'blocks', _('Edit sideblocks'), {:controller => 'profile_design', :profile => template.identifier, :action => 'index'} %> <%= button_without_text 'appearance', _('Edit appearance'), {:controller => 'profile_themes', :profile => template.identifier, :action => 'index'} %> <%= button_without_text 'header-footer', _('Edit header/footer'), {:controller => 'profile_editor', :profile => template.identifier, :action => 'header_footer'} %>