mirror of
https://github.com/slawkens/myaac.git
synced 2026-01-10 00:31:28 +01:00
Some adjustments to the online page
Use tables.headline Use .myaac-table
This commit is contained in:
@@ -4,24 +4,35 @@
|
|||||||
<br/>
|
<br/>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
<br/>
|
||||||
|
|
||||||
{# vocation statistics #}
|
{# vocation statistics #}
|
||||||
{% if setting('core.online_vocations') %}
|
{% if setting('core.online_vocations') %}
|
||||||
<br/>
|
|
||||||
|
{% set title = 'Vocation statistics' %}
|
||||||
|
{% set tableClass = 'Table3' %}
|
||||||
|
{% set background = config('darkborder') %}
|
||||||
|
{% set content %}
|
||||||
|
|
||||||
{% if setting('core.online_vocations_images') %}
|
{% if setting('core.online_vocations_images') %}
|
||||||
<table width="200" cellspacing="1" cellpadding="0" border="0" align="center">
|
<table width="200" cellspacing="1" cellpadding="0" border="0" align="center" class="myaac-table">
|
||||||
<tr bgcolor="{{ config.darkborder }}">
|
<thead>
|
||||||
<td><img src="images/sorcerer.png" /></td>
|
<tr>
|
||||||
<td><img src="images/druid.png" /></td>
|
|
||||||
<td><img src="images/paladin.png" /></td>
|
|
||||||
<td><img src="images/knight.png" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr bgcolor="{{ config.vdarkborder }}">
|
|
||||||
<td class="white" style="text-align: center;"><strong>Sorcerers</strong></td>
|
<td class="white" style="text-align: center;"><strong>Sorcerers</strong></td>
|
||||||
<td class="white" style="text-align: center;"><strong>Druids</strong></td>
|
<td class="white" style="text-align: center;"><strong>Druids</strong></td>
|
||||||
<td class="white" style="text-align: center;"><strong>Paladins</strong></td>
|
<td class="white" style="text-align: center;"><strong>Paladins</strong></td>
|
||||||
<td class="white" style="text-align: center;"><strong>Knights</strong></td>
|
<td class="white" style="text-align: center;"><strong>Knights</strong></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr bgcolor="{{ config.lightborder }}">
|
</thead>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td><img src="images/sorcerer.png" /></td>
|
||||||
|
<td><img src="images/druid.png" /></td>
|
||||||
|
<td><img src="images/paladin.png" /></td>
|
||||||
|
<td><img src="images/knight.png" /></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
<td style="text-align: center;">{{ vocs[1] }}</td>
|
<td style="text-align: center;">{{ vocs[1] }}</td>
|
||||||
<td style="text-align: center;">{{ vocs[2] }}</td>
|
<td style="text-align: center;">{{ vocs[2] }}</td>
|
||||||
<td style="text-align: center;">{{ vocs[3] }}</td>
|
<td style="text-align: center;">{{ vocs[3] }}</td>
|
||||||
@@ -29,30 +40,30 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<div style="text-align: center;"> </div>
|
<div style="text-align: center;"> </div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<table border="0" cellspacing="1" cellpadding="4" width="100%">
|
<table border="0" cellspacing="1" cellpadding="4" width="100%" class="myaac-table">
|
||||||
<tr bgcolor="{{ config.vdarkborder }}">
|
|
||||||
<td class="white" colspan="2"><b>Vocation statistics</b></td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
{% for i in 1..config.vocations_amount %}
|
{% for i in 1..config.vocations_amount %}
|
||||||
<tr bgcolor="{{ getStyle(i) }}">
|
<tr>
|
||||||
<td width="25%">{{ config.vocations[i] }}</td>
|
<td width="25%">{{ config.vocations[i] }}</td>
|
||||||
<td width="75%">{{ vocs[i] }}</td>
|
<td width="75%">{{ vocs[i] }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
<br/>
|
<br/>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% endset %}
|
||||||
|
{% include 'tables.headline.html.twig' %}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
{# show skulls #}
|
{# show skulls #}
|
||||||
{% if setting('core.online_skulls') %}
|
{% if setting('core.online_skulls') %}
|
||||||
<table width="100%" cellspacing="1">
|
<table width="100%" cellspacing="1" class="myaac-table">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="background: {{ config.darkborder }};" align="center">
|
<td align="center">
|
||||||
<img src="images/white_skull.gif"/> - 1 - 6 Frags<br/>
|
<img src="images/white_skull.gif"/> - 1 - 6 Frags<br/>
|
||||||
<img src="images/red_skull.gif"/> - 6+ Frags or Red Skull<br/>
|
<img src="images/red_skull.gif"/> - 6+ Frags or Red Skull<br/>
|
||||||
<img src="images/black_skull.gif"/> - 10+ Frags or Black Skull
|
<img src="images/black_skull.gif"/> - 10+ Frags or Black Skull
|
||||||
@@ -125,7 +136,8 @@
|
|||||||
{% set title = 'Players Online' %}
|
{% set title = 'Players Online' %}
|
||||||
{% set tableClass = 'Table2' %}
|
{% set tableClass = 'Table2' %}
|
||||||
{% set content %}
|
{% set content %}
|
||||||
<table width="100%">
|
<table width="100%" class="myaac-table">
|
||||||
|
|
||||||
<tr class="LabelH" style="position: relative; z-index: 20;">
|
<tr class="LabelH" style="position: relative; z-index: 20;">
|
||||||
{% if setting('core.account_country') %}
|
{% if setting('core.account_country') %}
|
||||||
<td width="11px"><a href="{{ getLink('online')}}?order=country_{{ order == 'country_asc' ? 'desc' : 'asc' }}">#  </a>
|
<td width="11px"><a href="{{ getLink('online')}}?order=country_{{ order == 'country_asc' ? 'desc' : 'asc' }}">#  </a>
|
||||||
@@ -151,7 +163,7 @@
|
|||||||
{% for player in players %}
|
{% for player in players %}
|
||||||
{% set i = i + 1 %}
|
{% set i = i + 1 %}
|
||||||
|
|
||||||
<tr style="background: {{ getStyle(i) }}; text-align: right; height: 40px;">
|
<tr style="text-align: right; height: 40px;">
|
||||||
{% if setting('core.account_country') %}
|
{% if setting('core.account_country') %}
|
||||||
<td>{{ player.country_image|raw }}</td>
|
<td>{{ player.country_image|raw }}</td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user