{% extends "detail.html" %}

{% block content %}
<table class="table table-hover">
  <tr>
    <td>Name</td>
    <td>{{ object.name }}</td>
  </tr>
  {% if object.city is not None %}
  <tr>
    <td>City</td>
    <td>{{ object.city }}</td>
  </tr>
  {% endif %}
  {% if object.country is not None %}
  <tr>
    <td>Country</td>
    <td>{{ object.country }}</td>
  </tr>
  {% endif %}
  {% if object.url is not None %}
  <tr>
    <td>URL</td>
    <td><a href="{{ object.url }}">{{ object.url }}</a></td>
  </tr>
  {% endif %}
  {% if object.founded is not None %}
  <tr>
    <td>Founded</td>
    <td>{{ object.founded }}</td>
  </tr>
  {% endif %}
  {% if object.dissolved is not None %}
  <tr>
    <td>Dissolved</td>
    <td>{{ object.dissolved }}</td>
  </tr>
  {% endif %}
  <tr>
    <th colspan="2">Misc</th>
  </tr>
  {% if object.created_at is not None %}
  <tr>
    <td>Created</td>
    <td>{{ object.created_at }}{% if object.created_by is not None %} by {{ object.created_by }}{% endif %}</td>
  </tr>
  {% endif %}
  {% if object.updated_at is not None %}
  <tr>
    <td>Last updated</td>
    <td>{{ object.updated_at }}{% if object.updated_by is not None %} by {{ object.updated_by }}{% endif %}</td>
  </tr>
  {% endif %}
</table>
{% endblock %}
