{% extends 'Game/index.html.twig' %} {% block title %} - Battle Report{% endblock %} {% block metas %} {%- set shareUrl = url('MineSeekerBundle_battle_share', { uuid: game.uuid }) | replace({'http://': 'https://'}) -%} {%- set _ogImage = url('MineSeekerBundle_og_battle', { uuid: game.uuid }) | replace({'http://': 'https://'}) -%} {% endblock %} {% block body %}
Battle Report
{% if redAvatar %} {{ redName }} {% else %} {{ redName|slice(0,2)|upper }} {% endif %}
{{ redName }} Red
{% if redPts is not null and bluePts is not null %}
{{ redPts }} : {{ bluePts }}
{% else %}
— : —
{% endif %}
VS
{% 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 %}
{% if blueAvatar %} {{ blueName }} {% else %} {{ blueName|slice(0,2)|upper }} {% endif %}
{{ blueName }} Blue
{% 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 %}