cirandas.net

ref: master

app/views/themes/_select_theme.html.erb


<% if !@themes.empty? %>

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

<%= button :home, _('Use the default theme'), { action: 'unset'}, method: 'post', data: {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)) + '
'.html_safe + content_tag('strong', theme.name, :class => 'name') + '
'.html_safe if theme.id == @current_theme # selected content_tag( 'div', base_content + content_tag('big', _('(current)') ) +'
'.html_safe, :class => 'theme-opt list-opt selected') else # Not selected link_to( base_content + '
'.html_safe, { :action => 'set', :id => theme.id }, :class => 'theme-opt list-opt') end end %><% end %>
<% end %>
<% end %>