Fixed team page twig (#76)

* Fixed team page twig

* * this shouldnt be in white font
This commit is contained in:
whiteblXK 2019-04-20 15:04:39 +02:00 committed by slawkens
parent 630d23141d
commit 6163d3fbed

View File

@ -1,5 +1,5 @@
<div class="TableContainer"> <div class="TableContainer">
<table class="Table1" cellpadding="0" cellspacing="0"> <table class="Table1" cellpadding="0" cellspacing="0" style="background-color: {{ config.lightborder }}">
<div class="CaptionContainer"> <div class="CaptionContainer">
<div class="CaptionInnerContainer"> <div class="CaptionInnerContainer">
<span class="CaptionEdgeLeftTop" style="background-image:url({{ template_path }}/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeLeftTop" style="background-image:url({{ template_path }}/images/content/box-frame-edge.gif);"></span>
@ -17,36 +17,40 @@
<tr> <tr>
<td> <td>
<div class="InnerTableContainer"> <div class="InnerTableContainer">
<table cellspacing="1" cellpadding="4" border="0" width="100%"> {% set i = 0 %}
{% if config.team_style == 1 %} {% if config.team_style == 1 %}
<tr>
<td width="10%"> <table border="0" cellpadding="4" cellspacing="1" width="100%">
<span><b>Group</b></span> <tr bgcolor="{{ config.vdarkborder }}">
<td width="10%" class="white">
<b>Group</b>
</td> </td>
{% if config.team_display_outfit %} {% if config.team_display_outfit %}
<td width="5%"><span><b>Outfit</b></span></td> <td width="5%" class="white">
<b>Outfit</b>
</td>
{% endif %} {% endif %}
<td width="40%"> <td width="40%" class="white">
<span><b>Name</b></span> <b>Name</b>
</td> </td>
{% if config.team_display_status %} {% if config.team_display_status %}
<td> <td class="white">
<span><b>Status</b></span> <b>Status</b>
</td> </td>
{% endif %} {% endif %}
{% if (config.multiworld or config.team_display_world) %} {% if (config.multiworld or config.team_display_world) %}
<td> <td class="white">
<span><b>World</b></span> <b>World</b>
</td> </td>
{% endif %} {% endif %}
{% if config.team_display_lastlogin %} {% if config.team_display_lastlogin %}
<td> <td class="white">
<span><b>Last login</b></span> <b>Last login</b>
</td> </td>
{% endif %} {% endif %}
</tr> </tr>
@ -54,12 +58,13 @@
{% for group in groupmember|reverse %} {% for group in groupmember|reverse %}
{% if group.members is not empty %} {% if group.members is not empty %}
{% for member in group.members|reverse %} {% for member in group.members|reverse %}
<tr> {% set i = i + 1 %}
<tr bgcolor="{{ getStyle(i) }}" style="height: 32px;">
<td>{{ group.group_name }}</td> <td>{{ group.group_name }}</td>
{% if config.team_display_outfit %} {% if config.team_display_outfit %}
<td> <td>
<img style="position:absolute;margin-top:{% if member.player.looktype in [75, 266, 302] %}-20px;margin-left:-0px;{% else %}-45px;margin-left:-25px;{% endif %}" src="{{ member.outfit }}" alt="player outfit"/> <img style="position: absolute; margin-top: {% if member.player.looktype in [75, 266, 302] %}-16px;margin-left:-0px;{% else %} -45px; margin-left: -30px;{% endif %}" src="{{ member.outfit }}" alt="player outfit"/>
</td> </td>
{% endif %} {% endif %}
@ -88,53 +93,56 @@
{% if config.team_display_lastlogin %} {% if config.team_display_lastlogin %}
<td> <td>
{{ member.last_login }} <span>{{ member.last_login }}</span>
</td> </td>
{% endif %} {% endif %}
</tr> </tr>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</table>
{% elseif config.team_style == 2 %} {% elseif config.team_style == 2 %}
{% for group in groupmember|reverse %} {% for group in groupmember|reverse %}
{% if group.members is not empty %} {% if group.members is not empty %}
<div style="text-align:center"><h2>{{ group.group_name }}</h2></div> <div style="text-align:center"><h2>{{ group.group_name }}</h2></div>
<table cellspacing="1" cellpadding="4" border="0" width="100%"> <table cellspacing="1" cellpadding="4" border="0" width="100%">
<tr> <tr bgcolor="{{ config.vdarkborder }}">
{% if config.team_display_outfit %} {% if config.team_display_outfit %}
<td width="5%"><span><b>Outfit</b></span></td> <td width="5%" class="white">
<b>Outfit</b>
</td>
{% endif %} {% endif %}
<td width="40%"> <td width="40%" class="white">
<span><b>Name</b></span> <b>Name</b>
</td> </td>
{% if config.team_display_status %} {% if config.team_display_status %}
<td> <td class="white">
<span><b>Status</b></span> <b>Status</b>
</td> </td>
{% endif %} {% endif %}
{% if (config.multiworld or config.team_display_world) %} {% if (config.multiworld or config.team_display_world) %}
<td> <td class="white">
<span><b>World</b></span> <b>World</b>
</td> </td>
{% endif %} {% endif %}
{% if config.team_display_lastlogin %} {% if config.team_display_lastlogin %}
<td> <td class="white">
<span><b>Last login</b></span> <b>Last login</b>
</td> </td>
{% endif %} {% endif %}
</tr> </tr>
{% for member in group.members %} {% for member in group.members %}
<tr> {% set i = i + 1 %}
<tr bgcolor="{{ getStyle(i) }}" style="height: 32px;">
{% if config.team_display_outfit %} {% if config.team_display_outfit %}
<td> <td>
<img style="position:absolute;margin-top:{% if member.player.looktype in [75, 266, 302] %}-20px;margin-left:-0px;{% else %}-45px;margin-left:-25px;{% endif %}" src="{{ member.outfit }}" alt="player outfit"/> <img style="position: absolute; margin-top: {% if member.player.looktype in [75, 266, 302] %}-16px;margin-left:-0px;{% else %} -45px; margin-left: -30px;{% endif %}" src="{{ member.outfit }}" alt="player outfit"/>
</td> </td>
{% endif %} {% endif %}
@ -163,7 +171,7 @@
{% if config.team_display_lastlogin %} {% if config.team_display_lastlogin %}
<td> <td>
{{ member.last_login }} <span>{{ member.last_login }}</span>
</td> </td>
{% endif %} {% endif %}
</tr> </tr>
@ -172,7 +180,6 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</table>
</div> </div>
</td> </td>
</tr> </tr>