{% extends 'trosnoth/base.html' %}
{% block head %}
  <title>{{ settings.serverName }} :: Player Registry</title>
{% endblock %}

{% block main %}
  <div id="container">
    <h1><a href="/">{{ settings.serverName }}</a></h1>
    <h2>Player Registry</h2>
    {% if users|length == 0 %}
      <p>No registered users on this server.</p>
    {% endif %}
    {% for userData in users %}
      <a href="{% url 'trosnoth:profile' userId=userData.user.pk nick=userData.nick  %}">
        {{ userData.nick }}</a> ({{ userData.lastSeen }})<br>
    {% endfor %}
  </div>
{% endblock %}
