2026-04-12 20:03:20 +02:00
|
|
|
{% extends 'Game/index.html.twig' %}
|
|
|
|
|
|
|
|
|
|
{% block title %} - Battle Report{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% block metas %}
|
2026-04-14 18:54:44 +02:00
|
|
|
{%- set shareUrl = url('MineSeekerBundle_battle_share', { uuid: game.uuid }) -%}
|
|
|
|
|
{%- set _ogImage = url('MineSeekerBundle_og_battle', { uuid: game.uuid }) -%}
|
|
|
|
|
<meta property="og:url" content="{{ shareUrl }}"/>
|
|
|
|
|
<meta property="og:type" content="article"/>
|
|
|
|
|
<meta property="og:site_name" content="MineSeeker"/>
|
|
|
|
|
<meta property="og:locale" content="en_US"/>
|
|
|
|
|
<meta property="og:title" content="{{ ogTitle }}"/>
|
2026-04-12 20:03:20 +02:00
|
|
|
<meta property="og:description" content="{{ ogDesc }}"/>
|
2026-04-14 18:54:44 +02:00
|
|
|
<meta property="og:image" content="{{ _ogImage }}"/>
|
|
|
|
|
<meta property="og:image:width" content="1600"/>
|
2026-04-12 20:03:20 +02:00
|
|
|
<meta property="og:image:height" content="627"/>
|
2026-04-14 18:54:44 +02:00
|
|
|
<meta property="og:image:alt" content="{{ ogTitle }}"/>
|
|
|
|
|
<meta name="twitter:card" content="summary_large_image"/>
|
|
|
|
|
<meta name="twitter:site" content="@MineSeeker"/>
|
|
|
|
|
<meta name="twitter:title" content="{{ ogTitle }}"/>
|
2026-04-12 20:03:20 +02:00
|
|
|
<meta name="twitter:description" content="{{ ogDesc }}"/>
|
2026-04-14 18:54:44 +02:00
|
|
|
<meta name="twitter:image" content="{{ _ogImage }}"/>
|
|
|
|
|
<meta name="twitter:image:alt" content="{{ ogTitle }}"/>
|
2026-04-12 20:03:20 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% block body %}
|
|
|
|
|
<div class="bshare-page">
|
|
|
|
|
<div class="bshare-card">
|
|
|
|
|
<div class="bshare-card__eyebrow">
|
2026-04-13 20:38:22 +02:00
|
|
|
<i class="fas fa-crosshairs"></i> Battle Report
|
2026-04-12 20:03:20 +02:00
|
|
|
</div>
|
|
|
|
|
<div class="bshare-vs">
|
|
|
|
|
<div class="bshare-player bshare-player--red">
|
|
|
|
|
<div class="bshare-avatar bshare-avatar--red">
|
|
|
|
|
{{ redName|slice(0,2)|upper }}
|
|
|
|
|
</div>
|
|
|
|
|
<span class="bshare-player__name">{{ redName }}</span>
|
|
|
|
|
<span class="bshare-player__side">Red</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="bshare-vs__center">
|
|
|
|
|
{% if redPts is not null and bluePts is not null %}
|
|
|
|
|
<div class="bshare-score">
|
|
|
|
|
<span class="bshare-score__red">{{ redPts }}</span>
|
|
|
|
|
<span class="bshare-score__sep">:</span>
|
|
|
|
|
<span class="bshare-score__blue">{{ bluePts }}</span>
|
|
|
|
|
</div>
|
|
|
|
|
{% else %}
|
|
|
|
|
<div class="bshare-score bshare-score--na">— : —</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
<div class="bshare-vs__label">VS</div>
|
|
|
|
|
{% if resign == 'red' %}
|
|
|
|
|
<div class="bshare-badge bshare-badge--blue">
|
2026-04-13 20:38:22 +02:00
|
|
|
<i class="fas fa-trophy"></i> Blue wins
|
2026-04-12 20:03:20 +02:00
|
|
|
</div>
|
|
|
|
|
{% elseif resign == 'blue' %}
|
|
|
|
|
<div class="bshare-badge bshare-badge--red">
|
2026-04-13 20:38:22 +02:00
|
|
|
<i class="fas fa-trophy"></i> Red wins
|
2026-04-12 20:03:20 +02:00
|
|
|
</div>
|
|
|
|
|
{% elseif redPts is not null and bluePts is not null %}
|
|
|
|
|
{% if redPts > bluePts %}
|
|
|
|
|
<div class="bshare-badge bshare-badge--red">
|
2026-04-13 20:38:22 +02:00
|
|
|
<i class="fas fa-trophy"></i> Red wins
|
2026-04-12 20:03:20 +02:00
|
|
|
</div>
|
|
|
|
|
{% elseif bluePts > redPts %}
|
|
|
|
|
<div class="bshare-badge bshare-badge--blue">
|
2026-04-13 20:38:22 +02:00
|
|
|
<i class="fas fa-trophy"></i> Blue wins
|
2026-04-12 20:03:20 +02:00
|
|
|
</div>
|
|
|
|
|
{% else %}
|
|
|
|
|
<div class="bshare-badge bshare-badge--draw">
|
2026-04-13 20:38:22 +02:00
|
|
|
<i class="fas fa-minus"></i> Draw
|
2026-04-12 20:03:20 +02:00
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% endif %}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="bshare-player bshare-player--blue">
|
|
|
|
|
<div class="bshare-avatar bshare-avatar--blue">
|
|
|
|
|
{{ blueName|slice(0,2)|upper }}
|
|
|
|
|
</div>
|
|
|
|
|
<span class="bshare-player__name">{{ blueName }}</span>
|
|
|
|
|
<span class="bshare-player__side">Blue</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="bshare-details">
|
|
|
|
|
{% if resign %}
|
|
|
|
|
<div class="bshare-detail">
|
2026-04-13 20:38:22 +02:00
|
|
|
<i class="fas fa-flag"></i>
|
2026-04-12 20:03:20 +02:00
|
|
|
<span>{{ resign|capitalize }} resigned</span>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if game.redExplodedBomb %}
|
|
|
|
|
<div class="bshare-detail bshare-detail--bomb">
|
2026-04-13 20:38:22 +02:00
|
|
|
<i class="fas fa-bomb"></i>
|
2026-04-12 20:03:20 +02:00
|
|
|
<span>{{ redName }} hit a mine</span>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if game.blueExplodedBomb %}
|
|
|
|
|
<div class="bshare-detail bshare-detail--bomb">
|
2026-04-13 20:38:22 +02:00
|
|
|
<i class="fas fa-bomb"></i>
|
2026-04-12 20:03:20 +02:00
|
|
|
<span>{{ blueName }} hit a mine</span>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if game.updated %}
|
|
|
|
|
<div class="bshare-detail">
|
2026-04-13 20:38:22 +02:00
|
|
|
<i class="fas fa-calendar"></i>
|
2026-04-12 20:03:20 +02:00
|
|
|
<span>{{ game.updated|date('Y-m-d H:i') }}</span>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="bshare-cta">
|
|
|
|
|
<a href="{{ path('MineSeekerBundle_gamePlay') }}" class="bshare-btn">
|
2026-04-13 20:38:22 +02:00
|
|
|
<i class="fas fa-play"></i> Play MineSeeker
|
2026-04-12 20:03:20 +02:00
|
|
|
</a>
|
|
|
|
|
<a href="{{ path('MineSeekerBundle_homepage') }}" class="bshare-btn bshare-btn--ghost">
|
2026-04-13 20:38:22 +02:00
|
|
|
<i class="fas fa-house"></i> Homepage
|
2026-04-12 20:03:20 +02:00
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2026-04-14 18:54:44 +02:00
|
|
|
{% endblock %}
|