* Add preNext button to view.

This commit is contained in:
qixinzhi
2023-08-30 07:24:37 +00:00
parent 97a93f5669
commit 078341a4e6
3 changed files with 11 additions and 0 deletions
+1
View File
@@ -563,6 +563,7 @@ $config->objectTables['instance'] = TABLE_INSTANCE;
$config->objectTables['space'] = TABLE_SPACE;
$config->objectTables['solution'] = TABLE_SOLUTION;
$config->objectTables['artifactrepo'] = TABLE_ARTIFACTREPO;
$config->objectTables['metric'] = TABLE_METRIC;
$config->newFeatures = array('introduction', 'tutorial', 'youngBlueTheme', 'visions');
$config->disabledFeatures = '';
+1
View File
@@ -148,6 +148,7 @@ class metric extends control
$this->view->createEditInfo = $this->metricZen->getCreateEditInfo($this->view);
$this->view->actions = $this->loadModel('action')->getList('metric', $metricID);
$this->view->users = $this->loadModel('user')->getPairs('noletter');
$this->view->preAndNext = $this->loadModel('common')->getPreAndNextObject('metric', $metricID);
$this->display();
}
+9
View File
@@ -146,4 +146,13 @@ detailBody
)
);
if(!isInModal())
{
floatPreNextBtn
(
!empty($preAndNext->pre) ? set::preLink(createLink('metric', 'view', "id={$preAndNext->pre->id}")) : null,
!empty($preAndNext->next) ? set::nextLink(createLink('metric', 'view', "id={$preAndNext->next->id}")) : null
);
}
render();