Translating entity types in network topology
Change-Id: I4f4e2898f18e994e7fdd29fdb1a478d461313e83 Partial-bug: #1226159
This commit is contained in:
parent
fdbf85c30a
commit
abff5a7a10
|
@ -531,7 +531,13 @@ horizon.network_topology = {
|
|||
return $0.toUpperCase();
|
||||
}),
|
||||
status:d.status,
|
||||
status_class:(d.status === "ACTIVE")? 'active' : 'down'
|
||||
status_class:(d.status === "ACTIVE")? 'active' : 'down',
|
||||
status_label: gettext("STATUS"),
|
||||
id_label: gettext("ID"),
|
||||
interfaces_label: gettext("Interfaces"),
|
||||
interface_label: gettext("Interface"),
|
||||
open_console_label: gettext("open console"),
|
||||
view_details_label: interpolate(gettext("view %s details"), [d.type])
|
||||
};
|
||||
if (d.type === 'router') {
|
||||
html_data.port = ports;
|
||||
|
|
|
@ -14,9 +14,9 @@
|
|||
<div class="footer">
|
||||
<div class="footerInner">
|
||||
<div class="cell link">
|
||||
<a href="[[url]]">» view [[type]] details</a>
|
||||
<a href="[[url]]">» [[view_details_label]]</a>
|
||||
[[#console_id]]
|
||||
<a href="[[url]][[console]]" class="vnc_window">» open console</a>
|
||||
<a href="[[url]][[console]]" class="vnc_window">» [[open_console_label]]</a>
|
||||
[[/console_id]]
|
||||
</div>
|
||||
<div class="cell delete">
|
||||
|
|
|
@ -9,11 +9,11 @@
|
|||
<caption>[[name]]</caption>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="device">ID</th>
|
||||
<th class="device">[[id_label]]</th>
|
||||
<td>[[id]]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="device">STATUS</th>
|
||||
<th class="device">[[status_label]]</th>
|
||||
<td>
|
||||
<span class="[[status_class]]">[[status]]</span>
|
||||
</td>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
{% block template %}
|
||||
{% jstemplate %}
|
||||
<table class="detailInfoTable">
|
||||
<caption>Interfaces</caption>
|
||||
<caption>[[interfaces_label]]</caption>
|
||||
<tbody>
|
||||
[[#port]]
|
||||
<tr>
|
||||
|
@ -22,7 +22,7 @@
|
|||
</td>
|
||||
<td class="delete">
|
||||
[[#is_interface]]
|
||||
<button class="delete-port btn btn-danger btn-mini" data-router-id="[[router_id]]" data-port-id="[[id]]">Interface</button>
|
||||
<button class="delete-port btn btn-danger btn-mini" data-router-id="[[router_id]]" data-port-id="[[id]]">[[interface_label]]</button>
|
||||
[[/is_interface]]
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Loading…
Reference in New Issue