<!--
Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy of
the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations under
the License.
-->

<div class="view">
  <% if (!viewList) { %>
    <div class="row">
      <div class="btn-toolbar span6">
        <button type="button" class="btn btn-small all" data-toggle="button">✓ All</button>
        <button class="btn btn-small disabled bulk-delete"><i class="icon-trash"></i></button>
        <% if (expandDocs) { %>
        <button id="collapse" class="btn btn-small"><i class="icon-minus"></i> Collapse</button>
        <% } else { %>
        <button id="collapse" class="btn btn-small"><i class="icon-plus"></i> Expand</button>
        <% } %>
      </div>
    </div>
  <% } %>
  <p>

  <div id="item-numbers"> </div>
  <table class="all-docs table table-striped table-condensed">
    <tbody></tbody>
  </table>
  
  <% if (endOfResults) { %>  
  <div class="text-center well">
    <p class="muted">
      End of results - <a id="js-end-results" href="#query" data-bypass="true" data-toggle="tab">edit query</a>
    </p>
    </div>
  <% } %>
  <div id="documents-pagination"></div>
</div>
