diff --git a/frontend/locales/english.lng b/frontend/locales/english.lng index 93980b8..4036706 100644 --- a/frontend/locales/english.lng +++ b/frontend/locales/english.lng @@ -245,7 +245,7 @@ admin-level-masteradmin; Master administrator header-admin-user-containers; VPSes owned by this user ## VPS list -title-admin-containerlist; VPS overview +title-admin-vpslist; VPS overview list-column-hostname; Hostname list-column-platform; Platform list-column-node; Node diff --git a/frontend/module.admin.containers.php b/frontend/module.admin.containers.php index 1d9a788..05e33e9 100644 --- a/frontend/module.admin.containers.php +++ b/frontend/module.admin.containers.php @@ -19,25 +19,24 @@ if($result = mysql_query_cached("SELECT * FROM containers")) { foreach($result->data as $row) { - $sContainer = new Container($row); + $sVps = new Container($row); - $sContainerList[] = array( - 'id' => $sContainer->sId, - 'hostname' => $sContainer->sHostname, - 'node' => $sContainer->sNode->sName, - 'node-hostname' => $sContainer->sNode->sHostname, - 'template' => $sContainer->sTemplate->sName, - 'diskspace' => number_format($sContainer->sDiskSpace / 1024), + $sVpsList[] = array( + 'id' => $sVps->sId, + 'hostname' => $sVps->sHostname, + 'node' => $sVps->sNode->sName, + 'node-hostname' => $sVps->sNode->sHostname, + 'template' => $sVps->sTemplate->sName, + 'diskspace' => number_format($sVps->sDiskSpace / 1024), 'diskspace-unit' => "GB", - 'guaranteed-ram' => $sContainer->sGuaranteedRam, + 'guaranteed-ram' => $sVps->sGuaranteedRam, 'guaranteed-ram-unit' => "MB", - 'status' => $sContainer->sStatusText, - 'virtualization-type' => $sContainer->sVirtualizationType + 'status' => $sVps->sStatusText, + 'virtualization-type' => $sVps->sVirtualizationType ); } } -/* TODO: Change variable name to phase out the use of the term "container". */ $sPageContents = Templater::AdvancedParse("{$sTheme}/admin/vps/list", $locale->strings, array( - 'containers' => $sContainerList + 'vpses' => $sVpsList )); diff --git a/frontend/templates/default/admin/vps/list.tpl b/frontend/templates/default/admin/vps/list.tpl index 55fa831..af76456 100644 --- a/frontend/templates/default/admin/vps/list.tpl +++ b/frontend/templates/default/admin/vps/list.tpl @@ -1,4 +1,4 @@ -
{%!list-column-ram} | {%!list-column-template} | |||||
---|---|---|---|---|---|---|
- {%if container[status] == running} + {%if vps[status] == running} - {%/if}{%if container[status] == stopped} + {%/if}{%if vps[status] == stopped} - {%/if}{%if container[status] == suspended} + {%/if}{%if vps[status] == suspended} {%/if} | - - {%?container[hostname]} + + {%?vps[hostname]} | - - {%if container[virtualization-type] == 1} + + {%if vps[virtualization-type] == 1} OpenVZ - {%/if}{%if container[virtualization-type] == 2} + {%/if}{%if vps[virtualization-type] == 2} Xen PV - {%/if}{%if container[virtualization-type] == 3} + {%/if}{%if vps[virtualization-type] == 3} Xen HVM - {%/if}{%if container[virtualization-type] == 4} + {%/if}{%if vps[virtualization-type] == 4} KVM {%/if} | - {%?container[diskspace]} - {%?container[diskspace-unit]} + {%?vps[diskspace]} + {%?vps[diskspace-unit]} | - {%?container[guaranteed-ram]} - {%?container[guaranteed-ram-unit]} + {%?vps[guaranteed-ram]} + {%?vps[guaranteed-ram-unit]} | -{%?container[template]} | +{%?vps[template]} |