{% extends "generic/object.html" %}
{% load render_table from django_tables2 %}
{% load plugins %}
{% block content %}
  <div class="row mb-3">
    <div class="col col-md-6">
      <div class="card">
        <h5 class="card-header">Attachments</h5>
        <div class="card-body">
          <table class="table table-hover attr-table">
            <tr>
              <th scope="row">Name</th>
              <td>{{ object }}</td>
            </tr>
            <tr>
              <th scope="row">Filename</th>
              <td>
                <a href="{{ object.file.url }}" target="_blank">{{ object.file }}</a>
              </td>
            </tr>
            <tr>
              <th scope="row">Size</th>
              <td>{{ object.size|filesizeformat }}</td>
            </tr>
            <tr>
              <th scope="row">Parent</th>
              <td>{{ object.parent|linkify }}</td>
            </tr>
            <tr>
              <th scope="row">Created</th>
              <td>{{ object.created }}</td>
            </tr>
            <tr>
              <th scope="row">Updated</th>
              <td>{{ object.last_updated }}</td>
            </tr>
          </table>
        </div>
      </div>
      {% include "inc/panels/custom_fields.html" %}
      {% plugin_left_page object %}
    </div>
    <div class="col col-md-6">
      {% include "inc/panels/tags.html" %}
      {% include "inc/panels/comments.html" %}
      {% plugin_right_page object %}
    </div>
  </div>
  <div class="row">
    <div class="col col-md-12">{% plugin_full_width_page object %}</div>
  </div>
{% endblock content %}
