{% extends 'Game/index.html.twig' %} {% block title %} - Battle Report{% endblock %} {% block metas %} {% set shareUrl = url('MineSeekerBundle_battle_share', { id: game.id }) %} {% endblock %} {% block body %}
Battle Report
{# VS Header #}
{{ redName|slice(0,2)|upper }}
{{ redName }} Red
{% if redPts is not null and bluePts is not null %}
{{ redPts }} : {{ bluePts }}
{% else %}
— : —
{% endif %}
VS
{# Result badge #} {% if resign == 'red' %}
Blue wins
{% elseif resign == 'blue' %}
Red wins
{% elseif redPts is not null and bluePts is not null %} {% if redPts > bluePts %}
Red wins
{% elseif bluePts > redPts %}
Blue wins
{% else %}
Draw
{% endif %} {% endif %}
{{ blueName|slice(0,2)|upper }}
{{ blueName }} Blue
{# Details #}
{% if resign %}
{{ resign|capitalize }} resigned
{% endif %} {% if game.redExplodedBomb %}
{{ redName }} hit a mine
{% endif %} {% if game.blueExplodedBomb %}
{{ blueName }} hit a mine
{% endif %} {% if game.updated %}
{{ game.updated|date('Y-m-d H:i') }}
{% endif %}
{% endblock %}