Sha256: 6da67bf00e6f42cb709566719304ffdb5df9eea739ae027c6191bad3efebc038

Contents?: true

Size: 997 Bytes

Versions: 10

Compression:

Stored size: 997 Bytes

Contents

<% content_for :page_heading do %>
  <h2>
    <i class="glyphicon icon-large glyphicon-picture"></i>
    <%= 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

10 entries across 10 versions & 1 rubygems

Version Path
HornsAndHooves-publify_core-10.5.0 app/views/admin/themes/index.html.erb
HornsAndHooves-publify_core-10.4.0 app/views/admin/themes/index.html.erb
HornsAndHooves-publify_core-10.3.0 app/views/admin/themes/index.html.erb
HornsAndHooves-publify_core-10.2.0 app/views/admin/themes/index.html.erb
HornsAndHooves-publify_core-10.1.1 app/views/admin/themes/index.html.erb
HornsAndHooves-publify_core-10.1.0 app/views/admin/themes/index.html.erb
HornsAndHooves-publify_core-10.0.3 app/views/admin/themes/index.html.erb
HornsAndHooves-publify_core-10.0.2 app/views/admin/themes/index.html.erb
HornsAndHooves-publify_core-10.0.1 app/views/admin/themes/index.html.erb
HornsAndHooves-publify_core-10.0.0 app/views/admin/themes/index.html.erb