{% load i18n %}

<table>
 <thead><tr>
  <th>{% trans 'Start' %}</th>
  <th>{% trans 'Event' %}</th>
  <th colspan="4">{% trans 'Players' %}</th>
  <th>{% trans 'Kyu Points' %}</th>
  <th>{% trans 'Dan Points' %}</th>
  <th>{% trans 'Bonus Points' %}</th>
  <th>{% trans 'Comment' %}</th>
 </tr>
 </thead>

{% for result in hanchan_list %}
 <tr>
  <td>{{ result.hanchan.start }}</td>
  <td><a href="{{ result.hanchan.event.get_absolute_url }}">{{ result.hanchan.event.name }}</a></td>
  {% if result.hanchan.valid %}
   {% for player in result.hanchan.player_set.all %}
    <td class="center"><a href="{% url 'membership-details' player.user.username %}">{{player.user}}</a><br/> {{player.score }}</td>
   {% endfor %}
    <td class="center">{{result.kyu_points}}</td>
    <td class="center">{{result.dan_points}}</td>
  {% else %}
    <td colspan="6" class="center">{% trans 'This Hanchan does not validate' %}</td>
  {% endif %}
     <td class="center">{{result.bonus_points}}</td>
  <td>{{ result.hanchan.comment }}</td>
 </tr>
{% endfor %}
</table>