{% extends 'layout.html' %} {% macro getId(name) -%} {{ name | lower | replace(r/[^a-z0-9]+/g, '-') }} {%- endmacro %} {% block title %}{{ displayName }}{% endblock %} {% block content %}

{{ displayName }}

back

{% if startDate and endDate %}

{{ startDate }} - {{ endDate }}

{% endif %} {% if description %}

{{ description }}

{% endif %}

Current Standings

{% for row in standings %} {% endfor %}
Player Played Wins For Against Diff
{{ loop.index }} {{ row.name }} {{ row.played }} {{ row.wins }} {{ row.for }} {{ row.against }} {{ row.diff }}
{% for breakdown in playerBreakdowns %}

{{ breakdown.name }} breakdown

{% if breakdown.results.length %}

Results

{% for row in breakdown.results %}

{{ row.winner }} beat {{ row.loser }} {{ row.score }}

{% endfor %} {% else %}

No results yet

{% endif %} {% if breakdown.yetToPlay.length %}

Remaining Fixtures

{% for player in breakdown.yetToPlay %}

{{ breakdown.name }} v {{ player}}

{% endfor %} {% else %}

All fixtures played!

{% endif %}
{% endfor %}

All Results ({{ resultsTotal }})

{% if allResults.length %} {% for dateRow in allResults %}

{{ dateRow.date }}

{% for row in dateRow.results %}

{{ row.winner }} beat {{ row.loser }} {{ row.score }}

{% endfor %} {% endfor %} {% else %}

No results yet

{% endif %}
{% endblock %}