/
compatibility_details.tpl
43 lines (41 loc) · 1.29 KB
/
compatibility_details.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{if $old_layout == 'no'}
{assign var="x" value=$game->getSupportLevel()}
{assign var="pct_class" value=$support_level_class.$x}
{assign var="support_level" value=$support_level_desc.$x}
{else}
{math equation="x - (x % 5)" x=$game->getSupportLevel() assign='pct_class'}
{assign var="pct_class" value="pct"|cat:$pct_class}
{assign var="support_level" value=$game->getSupportLevel()|cat:"%"}
{/if}
{capture "content"}
<table class="chart color4">
<caption>{#compatibilityDetailsChartTitle#}</caption>
<thead>
<tr class="color4">
<th>{#compatibilityDetailsChartCol1#}</th>
<th>{#compatibilityDetailsChartCol2#}</th>
{if $old_layout == 'no'}
<th>{#compatibilityDetailsChartCol3a#}</th>
{else}
<th>{#compatibilityDetailsChartCol3b#}</th>
{/if}
</tr>
</thead>
<tbody>
<tr class="color0">
<td>{$game->getName()}</td>
<td>{$game->getTarget()}</td>
<td align="center" class="{$pct_class}">{$support_level}</td>
</tr>
<tr class="color2">
<td colspan="3" class="details">
{$game->getNotes()}
</td>
</tr>
</tbody>
</table>
<p class="bottom-link">
<a href="/compatibility/{$version}/">{#compatibilityDetailsBack#}</a>
</p>
{/capture}
{include "components/box.tpl" head={#compatibilityDetailsInto#} content=$smarty.capture.content}