Sha256: 9bdb209e0fc607f548dae8ef52be194c062fc878da4c620defa97738c5e1e88c
Contents?: true
Size: 938 Bytes
Versions: 5
Compression:
Stored size: 938 Bytes
Contents
<% content_for :page_heading do %> <h2> <%= t('.choose_a_theme') %> </h2> <% end %> <% for theme in @themes %> <% preview_url = url_for(action: 'preview', theme: theme.name) %> <% switch_url = url_for(action: 'switchto', theme: theme.name) %> <div class='col-md-6'> <% if theme.path == @active.path %> <div class='well'> <h3><%= t('.active_theme', name: theme.name) %></h3> <%= image_tag(preview_url, class: 'img-responsive img-thumbnail') %> <%= raw theme.description_html %> </div> <% else %> <div> <h3><%= link_to(theme.name, switch_url, title: t('.use_this_theme')) %></h3> <%= link_to(image_tag(preview_url, class: 'img-thumbnail'), switch_url, title: t('.use_this_theme')) %> <%= raw theme.description_html %> <p><%= link_to(t('.use_this_theme'), switch_url, class: 'btn btn-info') %></p> </div> <% end %> </div> <% end %>
Version data entries
5 entries across 5 versions & 1 rubygems