* refactor history usage.

This commit is contained in:
sunhao
2023-11-21 10:21:20 +08:00
parent 5128fb123e
commit 0d3721d7ef
7 changed files with 9 additions and 22 deletions
+1 -4
View File
@@ -70,10 +70,7 @@ detailBody
)
),
),
history
(
set::commentUrl(createLink('action', 'comment', array('objectType' => 'account', 'objectID' => $account->id))),
),
history(),
floatToolbar
(
set::object($account),
+1 -4
View File
@@ -105,10 +105,7 @@ detailBody
)
)
),
history
(
set::commentUrl(createLink('action', 'comment', array('objectType' => 'host', 'objectID' => $host->id))),
),
history(),
isonlybody() ? null : floatToolbar
(
set::object($host),
+2 -1
View File
@@ -243,7 +243,8 @@ div
setClass('w-1/3'),
history
(
set::commentUrl(createLink('action', 'comment', array('objectType' => $type === 'store' ? 'instance' : $instance->type, 'objectID' => $instance->id))),
set::objectType($type === 'store' ? 'instance' : $instance->type),
set::objectID($instance->id)
)
)
);
+1 -4
View File
@@ -144,10 +144,7 @@ detailBody
),
$metricDataSection,
),
history
(
set::commentUrl(createLink('action', 'comment', array('objectType' => 'metric', 'objectID' => $metric->id))),
),
history(),
floatToolbar
(
isAjaxRequest('modal') ? null : to::prefix(backBtn(set::icon('back'), $lang->goback)),
+1 -4
View File
@@ -310,10 +310,7 @@ detailBody
)
),
),
history
(
set::commentUrl(createLink('action', 'comment', array('objectType' => 'metric', 'objectID' => $metric->id))),
),
history(),
floatToolbar
(
isAjaxRequest('modal') ? null : to::prefix(backBtn(set::icon('back'), $lang->goback)),
+1 -4
View File
@@ -258,10 +258,7 @@ panel
cell
(
setClass('cell cell-history'),
history
(
set::commentUrl(createLink('action', 'comment', array('objectType' => 'mr', 'objectID' => $MR->id))),
)
history(set::objectID($MR->id))
),
),
cell
+2 -1
View File
@@ -76,7 +76,8 @@ detailBody
),
history
(
set::commentUrl(createLink('action', 'comment', array('objectType' => 'serverroom', 'objectID' => $serverRoom->id))),
set::objectType('serverroom'),
set::objectID($serverRoom->id)
),
floatToolbar
(