zahost->browseNode;?>
@@ -148,6 +149,7 @@
if($canBeChanged) $actionFormLink = $this->createLink('action', 'comment', "objectType=zahost&objectID=$zahost->hostID");
?>
diff --git a/module/zanode/control.php b/module/zanode/control.php
index 76cd0eb876..595e650db2 100644
--- a/module/zanode/control.php
+++ b/module/zanode/control.php
@@ -78,9 +78,9 @@ class zanode extends control
*/
public function list($hostID, $orderBy = 'id_desc')
{
- if(!commonModel::hasPriv('zahost', 'view'))
+ if(!commonModel::hasPriv('zanode', 'browse'))
{
- $this->loadModel('common')->deny('zahost', 'view');
+ $this->loadModel('common')->deny('zanode', 'browse');
}
$this->view->title = $this->lang->zanode->common;
$this->view->nodeList = $this->loadModel("zanode")->getListByHost($hostID, $orderBy);
diff --git a/module/zanode/lang/en.php b/module/zanode/lang/en.php
index 78417a405f..dcada9c8bd 100644
--- a/module/zanode/lang/en.php
+++ b/module/zanode/lang/en.php
@@ -49,6 +49,7 @@ $lang->zanode->confirmShutdown = "Are you sure to shutdown the ZenAgent Node?";
$lang->zanode->confirmSuspend = "Are you sure to suspend the ZenAgent Node?";
$lang->zanode->confirmResume = "Are you sure to resume the ZenAgent Node?";
$lang->zanode->confirmRestore = "Are you sure to restore the ZenAgent Node?";
+$lang->zanode->confirmRestore = "The ZenAgent Node will be restored to this snapshot state, are you sure you want to continue?";
$lang->zanode->actionSuccess = 'Success';
$lang->zanode->deleted = "Deleted";
$lang->zanode->scriptPath = "Script path";
diff --git a/module/zanode/lang/zh-cn.php b/module/zanode/lang/zh-cn.php
index f499d510d7..4ea8485bf4 100644
--- a/module/zanode/lang/zh-cn.php
+++ b/module/zanode/lang/zh-cn.php
@@ -48,7 +48,7 @@ $lang->zanode->confirmReboot = "您确定重启执行节点吗?";
$lang->zanode->confirmShutdown = "您确定关闭执行节点吗?";
$lang->zanode->confirmSuspend = "您确定休眠执行节点吗?";
$lang->zanode->confirmResume = "您确定恢复执行节点吗?";
-$lang->zanode->confirmRestore = "您确定还原执行节点吗?";
+$lang->zanode->confirmRestore = "执行节点将会还原至此快照状态,您确定要继续么?";
$lang->zanode->actionSuccess = '操作成功';
$lang->zanode->deleted = "已删除";
$lang->zanode->scriptPath = "脚本目录";
diff --git a/module/zanode/view/browsesnapshot.html.php b/module/zanode/view/browsesnapshot.html.php
index 3686889565..1f5ebda9a4 100644
--- a/module/zanode/view/browsesnapshot.html.php
+++ b/module/zanode/view/browsesnapshot.html.php
@@ -38,6 +38,8 @@
$snapshot->status = ($snapshot->status == 'restoring' && time() - strtotime($snapshot->restoreDate) > 600) ? 'restore_failed' : $snapshot->status;
$restoreAttr = "title='{$lang->zanode->restoreSnapshot}' target='hiddenwin'";
$restoreAttr .= $snapshot->status == 'restoring' ? ' class="btn disabled"' : 'class="btn"';
+ $deleteAttr = "title='{$lang->zanode->deleteSnapshot}' target='hiddenwin'";
+ $deleteAttr .= $snapshot->status == 'restoring' ? ' class="btn disabled"' : 'class="btn"';
?>
localName ? $snapshot->localName : $snapshot->name;?>
'>zanode->snapshot->statusList, $snapshot->status, '');?>
@@ -46,7 +48,7 @@
', 'hiddenwin', "title={$lang->zanode->editSnapshot} onclick='window.parent.editSnapshot(\"" . $this->createLink('zanode', 'editSnapshot', "snapshotID={$snapshot->id}") . "\")' class='btn'");?>
createLink('zanode', 'restoreSnapshot', "nodeID={$nodeID}&snapshotID={$snapshot->id}"), '', 'hiddenwin', $restoreAttr);?>
- createLink('zanode', 'deleteSnapshot', "snapshotID={$snapshot->id}"), '', 'hiddenwin', "title={$lang->zanode->deleteSnapshot} class='btn'");?>
+ createLink('zanode', 'deleteSnapshot', "snapshotID={$snapshot->id}"), '', 'hiddenwin', $deleteAttr);?>
diff --git a/module/zanode/view/list.html.php b/module/zanode/view/list.html.php
index 084e62a41a..37e595a1e5 100644
--- a/module/zanode/view/list.html.php
+++ b/module/zanode/view/list.html.php
@@ -11,6 +11,7 @@
* @link http://www.zentao.net
*/
?>
+
getModuleRoot() . 'common/view/header.html.php'; ?>