-
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #68 from whiteblXK/master
Move lastkills/killstatistics to twig template
- Loading branch information
Showing
2 changed files
with
95 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<div class="TableContainer" > | ||
<table class="Table1" cellpadding="0" cellspacing="0" > | ||
<div class="CaptionContainer" > | ||
<div class="CaptionInnerContainer" > | ||
<span class="CaptionEdgeLeftTop" style="background-image:url({{ template_path }}/images/content/box-frame-edge.gif);" /></span> | ||
<span class="CaptionEdgeRightTop" style="background-image:url({{ template_path }}/images/content/box-frame-edge.gif);" /></span> | ||
<span class="CaptionBorderTop" style="background-image:url({{ template_path }}/images/content/table-headline-border.gif);" ></span> | ||
<span class="CaptionVerticalLeft" style="background-image:url({{ template_path }}/images/content/box-frame-vertical.gif);" /></span> | ||
<div class="Text" >Last Kills</div> | ||
<span class="CaptionVerticalRight" style="background-image:url({{ template_path }}/images/content/box-frame-vertical.gif);" /></span> | ||
<span class="CaptionBorderBottom" style="background-image:url({{ template_path }}/images/content/table-headline-border.gif);" ></span> | ||
<span class="CaptionEdgeLeftBottom" style="background-image:url({{ template_path }}/images/content/box-frame-edge.gif);" /></span> | ||
<span class="CaptionEdgeRightBottom" style="background-image:url({{ template_path }}/images/content/box-frame-edge.gif);" /></span> | ||
</div> | ||
</div> | ||
<tr> | ||
<td> | ||
<div class="InnerTableContainer" > | ||
<table border="0" cellspacing="0" cellpadding="0" width="100%"> | ||
{% if lastkills|length <= 0 %} | ||
<td> | ||
No one died on {{ config.lua.serverName }} | ||
</td> | ||
{% else %} | ||
{% for lastkill in lastkills %} | ||
<tr> | ||
<td class="centralizeContent" width="30"> | ||
{{ lastkill.id }} | ||
</td> | ||
<td width="125"> | ||
<small>{{ lastkill.date|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> | ||
</td> | ||
</tr> | ||
</table> | ||
</div> |