cirandas.net

ref: master

app/views/profile_themes/index.html.erb


<%= render :partial => 'themes/select_template' %>
<%= render :partial => 'themes/select_theme' %>

<% 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') %> <%= modal_button :add, _('New theme ...'), :action => 'new' %> <% end %> <%= button(:back, _('Back'), :controller => 'profile_editor', :action => 'index') %> <% end %>