Merge pull request #2689 from TopoX84/patch-5

Update peers.tpl
This commit is contained in:
Sebastian Grewe 2018-03-05 15:29:34 +01:00 committed by GitHub
commit 3ff7ee98b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,31 +1,35 @@
<div class="row"> <div class="row">
<div class="col-lg-12"> <div class="col-lg-12">
<div class="panel panel-info"> <div class="panel panel-info">
<div class="panel-heading"> <div class="panel-heading">
<i class="fa fa-connectdevelop fa-fw"></i> Peer Information <i class="fa fa-connectdevelop fa-fw"></i> Peer Information
</div> </div>
<div class="panel-body no-padding"> <div class="panel-body no-padding">
<table class="table table-striped table-bordered table-hover"> <div class="table-responsive">
<thead> <table class="table table-striped table-bordered table-hover">
<tr> <thead>
<th>Host</th> <tr>
<th>Protocol</th> <th>Host</th>
<th>Identity</th> <th>Protocol</th>
<th>Connected</th> <th>Identity</th>
<th>Traffic</th> <th>Connected</th>
</tr> <th>Traffic</th>
</thead> </tr>
<tbody> </thead>
{foreach key=KEY item=ARRAY from=$PEERINFO} <tbody>
<tr> {foreach key=KEY item=ARRAY from=$PEERINFO}
<td>{$ARRAY['addr']}</td> <tr>
<td>{$ARRAY['version']}</td> <td>{$ARRAY['addr']}</td>
<td>{$ARRAY['subver']|replace:'/':''}</td> <td>{$ARRAY['version']}</td>
<td>{$ARRAY['conntime']|date_format:$GLOBAL.config.date}</td> <td>{$ARRAY['subver']|replace:'/':''}</td>
<td>{(($ARRAY['bytessent']|default:"0" + $ARRAY['bytesrecv']|default:"0") / 1024 / 1024)|number_format:"3"} MB</td> <td>{$ARRAY['conntime']|date_format:$GLOBAL.config.date}</td>
</tr> <td>{(($ARRAY['bytessent']|default:"0" + $ARRAY['bytesrecv']|default:"0") / 1024 / 1024)|number_format:"3"} MB</td>
{/foreach} </tr>
</tbody> {/foreach}
</table> </tbody>
</div> </table>
</div> </div>
</div>
</div>
</div>
</div>