myaac/system/templates/lastkills.html.twig
slawkens 6d4724f4f4 Squashed commit of the following:
commit da18629d1652c304a75b684939255a1838989279
Author: slawkens <slawkens@gmail.com>
Date:   Mon Apr 1 21:53:53 2024 +0200

    Fixes to tables headline

commit 41c3d9ad21304e99330ea42841b5932af792db92
Author: slawkens <slawkens@gmail.com>
Date:   Sun Mar 31 13:59:25 2024 +0200

    [WIP] Tables headline
2024-04-01 21:54:53 +02:00

54 lines
1.7 KiB
Twig

{% set title = 'Last Kills' %}
{% set content %}
<table style="width:100%;">
<tbody>
<tr>
<td>
<div class="TableShadowContainerRightTop">
<div class="TableShadowRightTop" style="background-image:url({{ template_path }}/images/content/table-shadow-rt.gif);"></div>
</div>
<div class="TableContentAndRightShadow" style="background-image:url({{ template_path }}/images/content/table-shadow-rm.gif);">
<div class="TableContentContainer">
<table class="TableContent" width="100%">
{% if lastkills|length <= 0 %}
<tr>
<td>
No one died on {{ config.lua.serverName }}
</td>
</tr>
{% else %}
{% for lastkill in lastkills %}
<tr bgcolor="{{ getStyle(lastkill.id) }}">
<td class="centralizeContent" width="30">
{{ lastkill.id }}.
</td>
<td width="125">
<small>{{ lastkill.time|date("j.m.Y, G:i:s") }}</small>
</td>
<td>
{{ lastkill.killers_string|raw }}
</td>
{% if config.multiworld %}
<td>
{{ lastkill.world_id }}
</td>
{% endif %}
</tr>
{% endfor %}
{% endif %}
</table>
</div>
</div>
<div class="TableShadowContainer">
<div class="TableBottomShadow" style="background-image:url(https://static.tibia.com/images/global/content/table-shadow-bm.gif);">
<div class="TableBottomLeftShadow" style="background-image:url({{ template_path }}/images/content/table-shadow-bl.gif);"></div>
<div class="TableBottomRightShadow" style="background-image:url({{ template_path }}/images/content/table-shadow-br.gif);"></div>
</div>
</div>
</td>
</tr>
</tbody>
</table>
{% endset %}
{% include 'tables.headline.html.twig' %}