* show story spec in task view

This commit is contained in:
chujilu
2014-08-12 11:30:43 +08:00
parent e596a80929
commit e4efa79e57
4 changed files with 9 additions and 1 deletions
+3 -1
View File
@@ -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. */
+1
View File
@@ -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';
+1
View File
@@ -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 = '任务类型';
+4
View File
@@ -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>