* [task#123700,done,1h,0h] add roadmap in story view.
This commit is contained in:
@@ -79,6 +79,7 @@ class storyBasicInfo extends wg
|
||||
$statusText = $this->prop('statusText', $story->status);
|
||||
$users = $this->prop('users', data('users'));
|
||||
$gradePairs = $this->prop('gradePairs', data('gradePairs'));
|
||||
$roadmaps = $this->prop('roadmaps', data('roadmaps'));
|
||||
$showGrade = $this->prop('showGrade', data('showGrade'));
|
||||
$items = array();
|
||||
|
||||
@@ -110,6 +111,15 @@ class storyBasicInfo extends wg
|
||||
'content' => zget($gradePairs, $story->grade)
|
||||
);
|
||||
}
|
||||
if($config->edition == 'ipd' && $story->type != 'story')
|
||||
{
|
||||
$items[$lang->story->roadmap] = hasPriv('roadmap', 'view') ? array
|
||||
(
|
||||
'control' => 'link',
|
||||
'url' => createLink('roadmap', 'view', "roadmapID=$story->roadmap"),
|
||||
'content' => zget($roadmaps, $story->roadmap)
|
||||
) : zget($roadmaps, $story->roadmap, '');
|
||||
}
|
||||
if(!$hiddenPlan)
|
||||
{
|
||||
$planTitleItems = array();
|
||||
|
||||
@@ -589,6 +589,7 @@ class story extends control
|
||||
$this->view->product = $product;
|
||||
$this->view->maxGradeGroup = $this->story->getMaxGradeGroup();
|
||||
$this->view->gradePairs = $this->story->getGradePairs($story->type, 'all');
|
||||
$this->view->roadmaps = $this->config->edition == 'ipd' ? $this->loadModel('roadmap')->getPairs() : array();
|
||||
$this->view->showGrade = $this->config->edition == 'ipd';
|
||||
$this->view->actions = $this->action->getList('story', $storyID);
|
||||
$this->view->branch = $story->branch;
|
||||
|
||||
Reference in New Issue
Block a user