<div class="table-responsive">
  <table class="table table-bordered">
    <thead>
      <tr>
        <td>{{ column_filename }}</td>
        <td>{{ column_size }}</td>
        <td>{{ column_date_added }}</td>
        <td class="text-right">{{ column_action }}</td>
      </tr>
    </thead>
    <tbody>
      {% if histories %}
        {% for history in histories %}
          <tr>
            <td>{{ history.filename }}</td>
            <td>{{ history.size }}</td>
            <td>{{ history.date_added }}</td>
            <td class="text-right">
              <button type="button" value="{{ history.filename }}" data-loading="{{ text_loading }}" data-toggle="tooltip" title="{{ button_restore }}" class="btn btn-warning"><i class="fa fa-refresh"></i></button>
              <button type="button" onclick="location = '{{ history.download }}';" data-toggle="tooltip" title="{{ button_download }}" class="btn btn-info"><i class="fa fa-download"></i></button>
              <button type="button" value="{{ history.filename }}" onclick="" data-loading="{{ text_loading }}" data-toggle="tooltip" title="{{ button_delete }}" class="btn btn-danger"><i class="fa fa-trash-o"></i></button>
            </td>
          </tr>
        {% endfor %}
      {% else %}
        <tr>
          <td colspan="4" class="text-center">{{ text_no_results }}</td>
        </tr>
      {% endif %}
    </tbody>
  </table>
</div>
<div class="row">
  <div class="col-sm-6 text-left">{{ pagination }}</div>
  <div class="col-sm-6 text-right">{{ results }}</div>
</div>
