Files
dn42-pingfinder/sm/templates/html.status.tpl
Xuu at Sour.is 4a185c375c escape html
2020-02-25 11:29:02 -07:00

31 lines
882 B
Smarty

{extends file='layout.tpl'}
{block name=meta}
<meta http-equiv="refresh" content="30">
{/block}
{block name=content}
<div class='row'>
<h2>Peer Status</h2>
{foreach $tops as $i}
<div class="panel panel-primary">
<div class="panel-heading">
<b>{$i.peer_nick|escape}</b>
</div>
<div class="panel-body">
<table class="table table-striped">
<thead><tr><th>Peer Name</th><th>Country</th><th>Script</th><th>Last Result</th></tr></thead>
<tbody>
{foreach $i.items as $n}<tr><th>{$n.peer_name|escape}</th><td>{$n.peer_country|escape}</td><td>{$n.peer_scriptver|escape}</td><td>{$n.last_ping|date_format}</td></tr>{/foreach}
</tbody>
</table>
</div>
</div>
{foreachelse}
<b>No results.</b> Give it a minute and refresh.
{/foreach}
</div>
{/block}