* Add preNext button to view.
This commit is contained in:
@@ -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 = '';
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user