* show story spec in task view
This commit is contained in:
@@ -387,7 +387,9 @@ class task extends control
|
||||
*/
|
||||
public function view($taskID)
|
||||
{
|
||||
$task = $this->task->getById($taskID, true);
|
||||
$task = $this->task->getById($taskID, true);
|
||||
$story = $this->story->getById($task->story);
|
||||
$task->storySpec = ($story != null) ? $story->spec : '';
|
||||
if(!$task) die(js::error($this->lang->notFound) . js::locate('back'));
|
||||
|
||||
/* Update action. */
|
||||
|
||||
@@ -36,6 +36,7 @@ $lang->task->id = 'ID';
|
||||
$lang->task->project = 'Project';
|
||||
$lang->task->module = 'Module';
|
||||
$lang->task->story = 'Story';
|
||||
$lang->task->storySpec = 'Story desc';
|
||||
$lang->task->storyVersion = 'Version';
|
||||
$lang->task->name = 'Name';
|
||||
$lang->task->type = 'Type';
|
||||
|
||||
@@ -36,6 +36,7 @@ $lang->task->id = '编号';
|
||||
$lang->task->project = '所属项目';
|
||||
$lang->task->module = '所属模块';
|
||||
$lang->task->story = '相关需求';
|
||||
$lang->task->storySpec = '需求描述';
|
||||
$lang->task->storyVersion = '需求版本';
|
||||
$lang->task->name = '任务名称';
|
||||
$lang->task->type = '任务类型';
|
||||
|
||||
@@ -69,6 +69,10 @@
|
||||
<legend><?php echo $lang->task->legendDesc;?></legend>
|
||||
<div class='article-content'><?php echo $task->desc;?></div>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->task->storySpec;?></legend>
|
||||
<div class='article-content'><?php echo $task->storySpec;?></div>
|
||||
</fieldset>
|
||||
<?php echo $this->fetch('file', 'printFiles', array('files' => $task->files, 'fieldset' => 'true'));?>
|
||||
<?php include '../../common/view/action.html.php';?>
|
||||
<div class='actions'> <?php if(!$task->deleted) echo $actionLinks;?></div>
|
||||
|
||||
Reference in New Issue
Block a user