Sha256: 54c60907cb0566116113c7db63e18f10bed76b5bcf857b93b23e6e280a09221c

Contents?: true

Size: 1.33 KB

Versions: 1

Compression:

Stored size: 1.33 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('thumbs-up')} Publish".html_safe, '#', class: 'btn btn-default btn-xs disabled js-publish', role: 'button') if policy(Georgia::Page).publish? %>
          <%= link_to("#{icon_tag('thumbs-down')} Unpublish".html_safe, '#', class: 'btn btn-default btn-xs disabled js-unpublish', role: 'button') if policy(Georgia::Page).unpublish? %>
          <%= link_to("#{icon_tag('trash-o')} Delete".html_safe, '#', class: 'btn btn-default btn-xs disabled js-delete', role: 'button') if policy(Georgia::Page).destroy? %>
        </th>
        <th colspan='3'>
          <%= pagination_tag(@search) %>
        </th>
      </thead>
      <tbody>
        <%= render partial: 'georgia/pages/page', collection: @pages, as: :page %>
      </tbody>
    </table>
  <% else -%>
    <h2>Yikes! You don't have any <%= instance_name.try(:humanize).try(:downcase).try(:pluralize) %> yet.</h2>
    <%= link_to "Get Started", '#', class: 'btn btn-primary btn--jumbo', data: {toggle: 'modal', target: '#page_form'} %>
  <% end -%>

</section>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
georgia-0.8.0 app/views/georgia/pages/search.html.erb