|
|
@@ -1408,12 +1408,12 @@
|
|
|
'</td>' +
|
|
|
'<td><a data-autostart="' + guest.autostart + '" class="icon-os icon-autostart" title="' + (function () { if (guest.autostart !== 0) { return '切至手动启动'; } else { return '切至开机启动';}})() + '" href="javascript:;" onclick="autostart_at(this);" style="' + (function () { if (guest.autostart === 0) { return 'filter: grayscale(100%);'; } else { return '';}})() + '"></a></td>' +
|
|
|
'<td>' + guest.html.status + '</td>' +
|
|
|
- '<td>' + guest.hostname + '</td>' +
|
|
|
+ '<td><a href="/guests?filter=node_id:eq:' + guest.node_id + '">' + guest.hostname + '</a></td>' +
|
|
|
'<td>' +
|
|
|
'CPU : ' + guest.cpu + ' 核<br />' +
|
|
|
'内存 : ' + guest.memory + ' GB<br />' +
|
|
|
'带宽 : ' + guest.html.bandwidth + '</td>' +
|
|
|
- '<td>' + guest.ip + '</td>' +
|
|
|
+ '<td>' + guest.ip + '<br><a href="/guests?filter=vlan_id:eq:' + guest.vlan_id + '" title="' + guest.vlan.description + '">' + guest.vlan.label + '</a></td>' +
|
|
|
'<td width="150px;"><a href="javascript:;" class="glyph-icon icon-elusive-eye-off" onclick="change_display_password_for_row(this);" style="color: #014c8c;"></a><span class="unreal_password">******</span><span class="real_password" style="display: none;">' + guest.password + '</span></td>' +
|
|
|
'<td>' +
|
|
|
'<div class="dropdown inline-block">' +
|
|
|
@@ -1502,6 +1502,22 @@
|
|
|
'$(\'#adjust_ability_instance_desc\').text($($(this).parent().parent().parent().parent().parent().children()[2]).find(\'div a\')[0].textContent + \'/\' + $($(this).parent().parent().parent().parent().parent().children()[2]).find(\'div p\')[0].textContent)">' +
|
|
|
'变更配置' +
|
|
|
'</a>' +
|
|
|
+ '</li>' +
|
|
|
+ '<li class="">' +
|
|
|
+ '<a href="javascript:;" data-toggle="modal" data-target="#revise_ip_modal"' +
|
|
|
+ 'onclick="$(\'#instance_uuid\').val($($(this).parent().parent().parent().parent().parent().children()[0]).text());\n' +
|
|
|
+ '$(\'#revise_ip_instance_desc\').text($($(this).parent().parent().parent().parent().parent().children()[2]).find(\'div a\')[0].textContent + \'/\' + $($(this).parent().parent().parent().parent().parent().children()[2]).find(\'div p\')[0].textContent);\n' +
|
|
|
+ '$(\'#revisional_ip\').val($($(this).parent().parent().parent().parent().parent().children()[8]).text().trim().replace(/ .*$/g, \'\'));">' +
|
|
|
+ '修正 IP' +
|
|
|
+ '</a>' +
|
|
|
+ '</li>' +
|
|
|
+ '<li class="">' +
|
|
|
+ '<a href="javascript:;" data-toggle="modal" data-target="#change_vlan_modal"' +
|
|
|
+ 'onclick="$(\'#instance_uuid\').val($($(this).parent().parent().parent().parent().parent().children()[0]).text());\n' +
|
|
|
+ '$(\'#change_vlan_instance_desc\').text($($(this).parent().parent().parent().parent().parent().children()[2]).find(\'div a\')[0].textContent + \'/\' + $($(this).parent().parent().parent().parent().parent().children()[2]).find(\'div p\')[0].textContent);">' +
|
|
|
+ '变更 VLAN' +
|
|
|
+ '</a>' +
|
|
|
+ '</li>' +
|
|
|
'<li class="divider"></li>' +
|
|
|
'<li class="' + exchange_disabled_with_not(guest.status, [2]) + '">' +
|
|
|
'<a href="javascript:;" data-toggle="modal" data-target="#reset_password_modal"' +
|
|
|
@@ -1804,7 +1820,7 @@
|
|
|
<a data-autostart="{{ item.autostart }}" class="icon-os icon-autostart" title="{% if item.autostart != 0 %}切至手动启动{% else %}切至开机启动{% endif %}" href="javascript:;" onclick="autostart_at(this);" style="{% if item.autostart == 0 %}filter: grayscale(100%);{% endif %}"></a>
|
|
|
</td>
|
|
|
<td>{{ format_guest_status(item.status, item.progress)|safe }}</td>
|
|
|
- <td><a href="/guests?keyword={{ item.node_id | string }}">{{ hosts_mapping_by_node_id[item.node_id | string].hostname }}</a></td>
|
|
|
+ <td><a href="/guests?filter=node_id:eq:{{ item.node_id | string }}">{{ hosts_mapping_by_node_id[item.node_id | string].hostname }}</a></td>
|
|
|
<td>
|
|
|
CPU : {{ item.cpu }} 核<br />
|
|
|
内存 : {{ item.memory }} GB<br />
|
|
|
@@ -1835,7 +1851,7 @@
|
|
|
</td>
|
|
|
<td>
|
|
|
{{ item.ip }}<br>
|
|
|
- <a href="/config#vlan" title="{{ item.vlan.description }}">{{ item.vlan.label }}</a>
|
|
|
+ <a href="/guests?filter=vlan_id:eq:{{ item.vlan_id }}" title="{{ item.vlan.description }}">{{ item.vlan.label }}</a>
|
|
|
</td>
|
|
|
<td><span class="unreal_password">*********</span><span class="real_password" style="display: none;">{{ item.password }}</span></td>
|
|
|
<td>{{ format_datetime_by_tus(item.create_time) }}</td>
|