{% extends 'trosnoth/base.html' %}
{% load static %}
{% block head %}
<title>{{ settings.serverName }} :: Running Games</title>
{% endblock %}

{% block main %}
<div id="container">
  <h1><a href="/">{{ settings.serverName }}</a></h1>
  <h2>Arenas</h2>

  <div id="arenas">
    <table>
      {% for arena in arenas %}
        <tr>
          <td><a href="{% url 'trosnoth:arena' arenaId=arena.id %}"
            >{{ arena.name }}</a></td>
          <td>{{ arena.status }}</td>
          <td>{{ arena.players }} players</td>
        </tr>
      {% endfor %}
      <tr>
        <td colspan="3">
          <a href="{% url 'trosnoth:newarena' %}">[ Add new arena ]</a>
        </td>
      </tr>
    </table>
  </div>
</div>
{% endblock %}
