Files
xen-orchestra/views/network/index.templet
Andrew Cooper 8ecc6482b2 Following review, rename "monospaced" -> "mac-address" and remove the
needless span element by applying the class to the td element instead.
2013-07-04 23:04:01 +01:00

79 lines
2.1 KiB
Plaintext

{**
* This file is a part of Xen Orchestra Web.
*
* Xen Orchestra Web is free software: you can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License
* as published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version.
*
* Xen Orchestra Web is distributed in the hope that it will be
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Xen Orchestra Web. If not, see
* <http://www.gnu.org/licenses/>.
*
* @author Olivier Lambert <olivier.lambert@vates.fr>
* @license http://www.gnu.org/licenses/agpl-3.0-standalone.html GNU AGPLv3
*
* @package Xen Orchestra Web
*}
{extends "/_base.templet"}
{block title}Network Overview{/block}
{block extra_scripts}
<script src="{$base_path}/js/backbone.js"></script>
<script src="{$base_path}/js/marionette.js"></script>
<script>
var pools = {$pools|json};
</script>
<script src="{$base_path}/js/network/index.js"></script>
{/block}
{block body}
<script type="text/html" id="tpl-pool">
<table class="table table-hover table-bordered">
<caption><h3 class="center"><%= name %></h3></caption>
<thead>
<tr>
<th>Name</th>
<th>Speed</th>
<th>Duplex</th>
<th>IP</th>
<th>MAC</th>
<th>Hardware</th>
<th>Link status</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</script>
<script type="text/html" id="tpl-network">
<td><i class="icon-sitemap"></i> <%= name %></td>
<td><%= speed %></td>
<td><%= duplex ? 'Yes' : 'No' %></td>
<td><%= IP ? IP : '<i>none</i>' %></td>
<td class="mac-address"><%= MAC %></td>
<td><%= vendor %> <%= device %></td>
<td><%
if (currently_attached)
{{
%><span class="label label-success">Connected</span></td><%
}
else
{{
%><span class="label label-important">Not connected</span></td><%
} %>
</script>
<div class="container">
<div class="row" id="region-main"></div>
</div>
{/block body}