* refactor history usage.
This commit is contained in:
@@ -70,10 +70,7 @@ detailBody
|
||||
)
|
||||
),
|
||||
),
|
||||
history
|
||||
(
|
||||
set::commentUrl(createLink('action', 'comment', array('objectType' => 'account', 'objectID' => $account->id))),
|
||||
),
|
||||
history(),
|
||||
floatToolbar
|
||||
(
|
||||
set::object($account),
|
||||
|
||||
@@ -105,10 +105,7 @@ detailBody
|
||||
)
|
||||
)
|
||||
),
|
||||
history
|
||||
(
|
||||
set::commentUrl(createLink('action', 'comment', array('objectType' => 'host', 'objectID' => $host->id))),
|
||||
),
|
||||
history(),
|
||||
isonlybody() ? null : floatToolbar
|
||||
(
|
||||
set::object($host),
|
||||
|
||||
@@ -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)
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
@@ -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)),
|
||||
|
||||
@@ -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)),
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user