{% extends "photobattle/base.html" %} {% block title %}{{ battle.title }}{% endblock %} {% block main_content %}

{{ battle.title }}

Voir Admin

État

État actuel : {{ battle.get_state_display }}

{% if next_state_value and next_state_display %}
{% csrf_token %}
{% endif %}

Équipes

{% if battle.teams.count %} {% else %}

Aucune équipe inscrite

{% endif %}
{% csrf_token %}
{% csrf_token %}

Photos

{% if battle.photos.count %} {% for team, photos in battle.photos_by_team.items %}
{{ team.name }} ({{ photos | length }}/{{ battle.photo_count }})

{% if photos %} {% for photo in photos %}

Partagée le {{ photo.date_creation | date }} à {{ photo.date_creation | time }}.{% if photo.grade %}
Évalutation : {{ photo.grade }}{% endif %}
{% endfor %} {% else %} Aucune photo n'a encore été partagée. {% endif %}

{% endfor %} {% else %}

Aucune photo partagée

{% endif %}

Votes

{% if battle.votes.count %} {% for vote in battle.votes.all %} {% endfor %}
Équipe Date Classement Action
{{ vote.team.name }} {{ vote.date_creation }} {{ vote.ranking }}
{% csrf_token %}
{% else %}

Aucun vote émis

{% endif %}

Résultats

{% if battle.results.count %} {% else %}

Aucun résultat calculé

{% endif %}
{% endblock main_content %}