<%= _('Editing Appearance') %>

<%= _('Select template') %>

<% for templates in @layout_templates.in_groups_of(3) %>
<% for template in templates %><%= if template base_content = image_tag( "/designs/templates/#{template.id}/thumbnail.png", :alt => _('The "%s" template')) + '
' + content_tag('strong', template.id, :class => 'name') + '
' if @current_template == template.id # selected content_tag( 'div', base_content + content_tag('big', _('(current)') ) +'
', :class => 'template-opt list-opt selected') else # Not selected link_to( base_content +'
', { :action => 'set_layout_template', :id => template.id }, :class => 'template-opt list-opt') end end %><% end %>
<% end %> <% if !@themes.empty? %>

<%= _('Select theme') %>

<%= button :home, _('Use the default theme'), { :action => 'unset'}, :method => 'post', :confirm => _('Are you sure you want to use the environment default theme?') %> <% for themes in @themes.in_groups_of(3) %>
<% for theme in themes %><%= if theme base_content = image_tag( "/designs/themes/#{theme.id}/preview.png", :alt => (_('The "%s" theme.') % theme.name)) + '
' + content_tag('strong', theme.name, :class => 'name') + '
' if theme.id == @current_theme # selected content_tag( 'div', base_content + content_tag('big', _('(current)') ) +'
', :class => 'theme-opt list-opt selected') else # Not selected link_to( base_content + '
', { :action => 'set', :id => theme.id }, :class => 'theme-opt list-opt') end end %><% end %>
<% end %> <% end %> <% if environment.enabled?('user_themes') %>

<%= _('My themes') %>

<% for themes in profile.themes.in_groups_of(3) %>
<% for theme in themes %><%= if theme selected = theme.id == @current_theme sel_html = selected ? content_tag('big', _('(current)') ) : link_to(_('Use this theme'), :action => 'set', :id => theme.id) content_tag( 'div', image_tag( '/images/icons-app/design-editor.png', :alt => (_('The "%s" theme.') % theme.name)) + '
' + content_tag('strong', theme.name, :class => 'name') + '
'+ sel_html +'
' + link_to(_('Edit this theme'), :action => 'edit', :id => theme.id) + '
' + link_to(_('Test this theme'), :action => 'start_test', :id => theme.id) + '
', :class => 'theme-opt list-opt' + (selected ? ' selected' : '') ) end %><% end %>
<% end %>
<% end %>
<% button_bar do %> <% if environment.enabled?('user_themes') %> <%= lightbox_button(:add, _('New theme ...'), :action => 'new') %> <% end %> <%= button(:back, _('Back'), :controller => 'profile_editor', :action => 'index') %> <% end %>