Browse Source

add ips in tables

windows
Florian N 12 years ago
parent
commit
bfb4be2d42
  1. 16
      templates/ip.html
  2. 6
      templates/main.html

16
templates/ip.html

@ -0,0 +1,16 @@
<table class="table table-hover table-condensed table-bordered" >
<thead>
<tr>
<th>Interface</th>
<th>IP</th>
</tr>
</thead>
<tbody>
{% for data in getip %}
{% cycle '<tr>' ''%}
<td>{{data}}</td>
{% cycle '' '</tr>' %}
{% endfor %}
</tbody>
</table>

6
templates/main.html

@ -168,10 +168,8 @@
</div> </div>
</div> </div>
<!-- /widget-header --> <!-- /widget-header -->
<div class="widget-content">
<table id="ip_dashboard" class="table table-hover table-condensed table-bordered" >
{{ getip }}
</table>
<div class="widget-content" id="getip">
{% include 'ip.html' %}
</div> </div>
<!-- /widget-content --> <!-- /widget-content -->
</div> </div>

Loading…
Cancel
Save