* 1.added story verify in task view.

* 2.put story spec, verify and file together.
This commit is contained in:
chenfeiCF
2016-03-14 11:59:34 +08:00
parent b2d49204b8
commit 8bbad78ec1
4 changed files with 18 additions and 31 deletions
+14 -25
View File
@@ -71,10 +71,7 @@
<legend><?php echo $lang->task->legendDesc;?></legend>
<div class='article-content'><?php echo $task->desc;?></div>
</fieldset>
<fieldset>
<legend><?php echo $lang->task->taskFiles;?></legend>
<?php echo $this->fetch('file', 'printFiles', array('files' => $task->files, 'fieldset' => 'false'));?>
</fieldset>
<?php echo $this->fetch('file', 'printFiles', array('files' => $task->files, 'fieldset' => 'true'));?>
<?php if($task->fromBug != 0):?>
<fieldset>
<legend><?php echo $lang->bug->steps;?></legend>
@@ -82,27 +79,19 @@
</fieldset>
<?php else:?>
<fieldset>
<legend><?php echo $lang->task->storySpec;?></legend>
<div class='article-content'><?php echo $task->storySpec;?></div>
</fieldset>
<fieldset>
<legend><?php echo $lang->task->storyFiles;?></legend>
<?php echo $this->fetch('file', 'printFiles', array('files' => $task->storyFiles, 'fieldset' => 'false'));?>
</fieldset>
<fieldset class='actionbox'>
<legend><?php echo $lang->task->storyComment;?></legend>
<?php
foreach($task->storyComments as $item => $commentAction)
{
if(isset($users[$commentAction->actor])) $commentAction->actor = $users[$commentAction->actor];
if(strpos($commentAction->actor, ':') !== false) $commentAction->actor = substr($commentAction->actor, strpos($commentAction->actor, ':') + 1);
printf($lang->task->commentActions, $item + 1, $commentAction->date, $commentAction->actor);
echo "<div class='history article-content'>";
echo strip_tags($commentAction->comment) == $commentAction->comment ? nl2br($commentAction->comment) : $commentAction->comment;
echo "</div>";
}
?>
<legend><?php echo $lang->task->story;?></legend>
<fieldset>
<legend><?php echo $lang->task->storySpec;?></legend>
<div class='article-content'><?php echo $task->storySpec;?></div>
</fieldset>
<fieldset>
<legend><?php echo $lang->task->storyVerify;?></legend>
<div class='article-content'><?php echo $task->storyVerify;?></div>
</fieldset>
<fieldset>
<legend><?php echo $lang->task->storyFiles;?></legend>
<?php echo $this->fetch('file', 'printFiles', array('files' => $task->storyFiles, 'fieldset' => 'false'));?>
</fieldset>
</fieldset>
<?php endif;?>
<?php include '../../common/view/action.html.php';?>