Sha256: dc0b21064a1b3d9bdee4bd97f7684d1c85fe98d2be047f1f7116dd433913c7ae

Contents?: true

Size: 1.45 KB

Versions: 9

Compression:

Stored size: 1.45 KB

Contents

<%= render 'header' %>

<section class="body-main">

  <%= active_facet_list(:tg, :t) %>

  <% if @pages and @pages.any? %>
    <table class="table table-hover table-results pages js-checkboxable">
      <thead>
        <th class='checkbox-cell'>
          <%= checkboxable_all_tag :pages %>
        </th>
        <th>
          <%= link_to "#{icon_tag('bolt')} Flush Cache".html_safe, '#', class: 'btn btn-default btn-xs disabled js-flush-cache', role: 'button' if can?(:flush_cache, model) %>
          <%= link_to "#{icon_tag('thumbs-up')} Publish".html_safe, '#', class: 'btn btn-default btn-xs disabled js-publish', role: 'button' if can?(:publish, model) %>
          <%= link_to "#{icon_tag('thumbs-down')} Unpublish".html_safe, '#', class: 'btn btn-default btn-xs disabled js-unpublish', role: 'button' if can?(:unpublish, model) %>
          <%= link_to "#{icon_tag('trash-o')} Delete".html_safe, '#', class: 'btn btn-default btn-xs disabled js-delete', role: 'button' if can?(:destroy, model) %>
        </th>
        <th colspan='3'>
          <%= pagination_tag(@search) %>
        </th>
      </thead>
      <tbody>
        <%= render partial: 'georgia/pages/page', collection: @pages, as: :page %>
      </tbody>
    </table>
  <% else -%>
    <h2>Yikes! There are <%= pluralize(0, instance_name.humanize.downcase) %>.</h2>
    <%= link_to "Get Started", '#', class: 'btn btn-primary btn--jumbo', data: {toggle: 'modal', target: '#page_form'} %>
  <% end -%>

</section>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
georgia-0.7.8 app/views/georgia/pages/search.html.erb
georgia-0.7.7 app/views/georgia/pages/search.html.erb
georgia-0.7.6 app/views/georgia/pages/search.html.erb
georgia-0.7.5 app/views/georgia/pages/search.html.erb
georgia-0.7.4 app/views/georgia/pages/search.html.erb
georgia-0.7.3 app/views/georgia/pages/search.html.erb
georgia-0.7.2 app/views/georgia/pages/search.html.erb
georgia-0.7.1 app/views/georgia/pages/search.html.erb
georgia-0.7.0 app/views/georgia/pages/search.html.erb