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

<% for templates in @layout_templates.in_groups_of(3) %> <% for template in templates %> <% selected = (!template.nil? && (@current_template == template.id)) %> <% end %> <% end %> <% for themes in @themes.in_groups_of(3) %> <% for theme in themes %> <% selected = (!theme.nil? && (theme.id == @current_theme)) %> <% end %> <% end %> <% for themes in profile.themes.in_groups_of(3) %> <% for theme in themes %> <% end %> <% end %>

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

<% if template %> <%= image_tag("/designs/templates/#{template.id}/thumbnail.png", :alt => _('The "%s" template')) %> <% end %> > <% if template %> <%= template.id %> <%= _('(current)') if selected %>
<%= link_to(_('Use this template'), :action => 'set_layout_template', :id => template.id) unless selected %> <% end %>
    

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

<%# FIXME add proper thumbnails %> <% if theme %> <%= image_tag('/images/icons-app/design-editor.png', :alt => (_('The "%s" theme.') % theme.name)) %> <% end %> > <% if theme %> <%= theme.name %> <%= _('(current)') if selected %>
<%= link_to(_('Use this theme'), :action => 'set', :id => theme.id) unless selected %> <% end %>
    
 

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

<%# FIXME add proper thumbnails %> <%= image_tag('/images/icons-app/design-editor.png', :alt => (_('The "%s" theme.') % theme.name)) if theme %> <%= theme.name if theme%>
<%= link_to(_('Edit this theme'), :action => 'edit', :id => theme.id) if theme %>
<%= link_to(_('Test this theme'), :action => 'start_test', :id => theme.id) if theme %>
    
 
<% button_bar do %> <%= lightbox_button(:add, _('New theme ...'), :action => 'new') %> <%= button(:back, _('Back'), :controller => 'profile_editor', :action => 'index') %> <% end %>