cirandas.net

ref: master

app/views/themes/_select_template.html.erb


<%= _('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')) + '
'.html_safe + content_tag('strong', template.name, :title => template.title, :class => 'name') + '
'.html_safe if @current_template == template.id # selected content_tag( 'div', base_content + content_tag('big', _('(current)') ) +'
'.html_safe, :class => 'template-opt list-opt selected') else # Not selected link_to( base_content +'
'.html_safe, { :action => 'set_layout_template', :id => template.id }, :class => 'template-opt list-opt') end end %><% end %>
<% end %>