* @package story * @version $Id: view.html.php 4952 2013-07-02 01:14:58Z chencongzhi520@gmail.com $ * @link http://www.zentao.net */ ?> session->storyList ? $app->session->storyList : $this->createLink('product', 'browse', "productID=$story->product");?>
story->legendSpec;?>
spec;?>
story->legendVerify;?>
verify;?>
fetch('file', 'printFiles', array('files' => $story->files, 'fieldset' => 'true', 'object' => $story));?> createLink('action', 'comment', "objectType=story&objectID=$story->id"); ?> children)):?>
lang->story->children;?>
children as $child):?>
story->id;?> priAB;?> story->title;?> story->assignedTo;?> story->estimate;?> story->status;?> actions;?>
id;?> pri . "'>"; echo $child->pri == '0' ? '' : zget($this->lang->story->priList, $child->pri, $child->pri); echo ""; ?> id", '', true); ?>">title;?> assignedTo);?> estimate . $config->hourUnit;?> processStatus('story', $child);?> id", $child, 'list', 'alter'); common::printIcon('story', 'review', "storyID=$child->id", $child, 'list', 'search', '', 'iframe showinonlybody', true); common::printIcon('story', 'assignTo', "storyID=$child->id", $child, 'list', '', '', 'iframe showinonlybody', true); common::printIcon('story', 'close', "storyID=$child->id", $child, 'list', '', '', 'iframe showinonlybody', true); common::printIcon('story', 'activate', "storyID=$child->id", $child, 'list', '', '', 'iframe showinonlybody', true); common::printIcon('story', 'edit', "storyID=$child->id", $child, 'list'); common::printIcon('story', 'createCase', "productID=$child->product&branch=$child->branch&module=0&from=¶m=0&story={$child->id}", $child, 'list', 'sitemap'); ?>
printExtendFields($story, 'div', "position=left&inForm=0&inCell=1");?>
";?> deleted):?> id", $story, 'button', 'alter', '', 'showinonlybody'); common::printIcon('story', 'review', "storyID=$story->id", $story, 'button', 'search', '', 'showinonlybody'); if($story->status == 'active' and $story->stage == 'wait' and $story->parent <= 0 and !isonlybody()) { $divideLang = $lang->story->subdivide; $misc = "class='btn divideStory' data-toggle='modal' data-type='iframe' data-width='95%'"; $link = $this->createLink('story', 'batchCreate', "productID=$story->product&branch=$story->branch&moduleID=$story->module&storyID=$story->id", '', true); if(common::hasPriv('story', 'batchCreate', $story)) echo html::a($link, " " . $divideLang, '', $misc); } common::printIcon('story', 'assignTo', "storyID=$story->id", $story, 'button', '', '', 'iframe showinonlybody', true); common::printIcon('story', 'close', "storyID=$story->id", $story, 'button', '', '', 'iframe showinonlybody', true); common::printIcon('story', 'activate', "storyID=$story->id", $story, 'button', '', '', 'iframe showinonlybody', true); if(isset($this->config->maxVersion) and $this->app->openApp == 'project' and common::hasPriv('story', 'importToLib')) echo html::a('#importToLib', " " . $this->lang->story->importToLib, '', 'class="btn" data-toggle="modal"'); if($story->parent >= 0 and $story->type != 'requirement' and (common::hasPriv('testcase', 'create', $story) or common::hasPriv('testcase', 'batchCreate', $story))) { $this->app->loadLang('testcase'); echo "
"; echo ""; echo ""; echo "
"; } if($from == 'execution') common::printIcon('task', 'create', "execution=$param&storyID=$story->id&moduleID=$story->module", $story, 'button', 'plus', '', 'showinonlybody'); echo $this->buildOperateMenu($story, 'view'); echo "
"; common::printIcon('story', 'edit', "storyID=$story->id", $story); common::printIcon('story', 'create', "productID=$story->product&branch=$story->branch&moduleID=$story->module&storyID=$story->id&executionID=0&bugID=0&planID=0&todoID=0&extra=&type=$story->type", $story, 'button', 'copy', '', '', '', "data-width='1050'"); common::printIcon('story', 'delete', "storyID=$story->id", $story, 'button', 'trash', 'hiddenwin'); ?>
type != 'normal'):?> branch and isset($branches[$storyModule->branch])) { $moduleTitle .= $branches[$storyModule->branch] . '/'; echo $branches[$storyModule->branch] . $lang->arrow; } foreach($modulePath as $key => $module) { $moduleTitle .= $module->name; if(!common::printLink('product', 'browse', "productID=$story->product&branch=$story->branch&browseType=byModule¶m=$module->id", $module->name, '', "data-app='product'")) echo $module->name; if(isset($modulePath[$key + 1])) { $moduleTitle .= '/'; echo $lang->arrow; } } } $printModule = ob_get_contents(); ob_end_clean(); ?> type != 'requirement'):?> type != 'requirement'):?>
story->product;?> createLink('product', 'view', "productID=$story->product"), $product->name);?>
product->branch;?> product&branch=$story->branch", $branches[$story->branch]);?>
story->module;?>
story->plan;?> planTitle)) { foreach($story->planTitle as $planID => $planTitle) { if(!common::printLink('productplan', 'view', "planID=$planID", $planTitle)) echo $lanTitle; echo '
'; } } ?>
story->source;?> story->sourceList[$story->source];?>
story->sourceNote;?> sourceNote;?>
story->status;?> processStatus('story', $story);?>
story->stage;?> stages and $branches) { foreach($story->stages as $branch => $stage) if(isset($branches[$branch])) echo $branches[$branch] . ' : ' . $lang->story->stageList[$stage] . '
'; } else { echo $lang->story->stageList[$story->stage]; } ?>
story->category;?> story->categoryList[$story->category];?>
story->pri;?> pri;?>' title='story->priList, $story->pri)?>'>story->priList, $story->pri)?>
story->estimate;?> estimate . $config->hourUnit;?>
story->keywords;?> keywords;?>
story->legendMailto;?> mailto); foreach($mailto as $account) {if(empty($account)) continue; echo "" . zget($users, trim($account)) . '  '; }?>
story->openedBy;?> openedBy) . $lang->at . $story->openedDate;?>
story->assignedTo;?> assignedTo) echo zget($users, $story->assignedTo) . $lang->at . $story->assignedDate;?>
story->reviewers;?> reviewedBy, ',')); if($reviewers) { foreach($reviewers as $reviewer) { echo in_array($reviewer, $reviewedBy) ? ' ' . zget($users, $reviewer) . '' : ' ' . zget($users, $reviewer) . ''; } } elseif($reviewedBy) { foreach($reviewedBy as $reviewer) echo ' ' . zget($users, $reviewer) . ''; } ?>
story->reviewedDate;?> reviewedBy) echo $story->reviewedDate;?>
story->closedBy;?> closedBy) echo zget($users, $story->closedBy) . $lang->at . $story->closedDate;?>
story->closedReason;?> closedReason) echo $lang->story->reasonList[$story->closedReason]; if(isset($story->extraStories[$story->duplicateStory])) { echo html::a(inlink('view', "storyID=$story->duplicateStory"), '#' . $story->duplicateStory . ' ' . $story->extraStories[$story->duplicateStory]); } ?>
story->lastEditedBy;?> lastEditedBy) echo zget($users, $story->lastEditedBy) . $lang->at . $story->lastEditedDate;?>
config->URAndSR):?>
    id] = $item->title; foreach($relation as $id => $title) { echo "
  • " . html::a($this->createLink('story', 'view', "id=$id", '', true), "#$id $title", '', "class='iframe' data-width='80%'"); echo html::a($this->createLink('story', 'linkStory', "storyID=$story->id&type=remove&linkedID=$id"), '', 'hiddenwin', "class='deleter hide removeButton'"); } ?> type == 'story') ? $lang->story->requirement : $lang->story->story;?>
  • createLink('story', 'linkStory', "storyID=$story->id", '', true), $lang->story->link . $linkLang, '', "class='btn btn-info iframe' data-width='95%' id='linkButton'");?> story->unlink . $linkLang, '', "class='btn btn-info' id='unlinkStory'");?>
type == 'story'):?>
    tasks as $executionTasks) { foreach($executionTasks as $task) { if(!isset($executions[$task->execution])) continue; $executionName = $executions[$task->execution]; $class = isonlybody() ? 'showinonlybody' : 'iframe'; echo "
  • " . html::a($this->createLink('task', 'view', "taskID=$task->id", '', true), "[T]$task->id $task->name", '', "class=$class data-width='80%'"); echo html::a($this->createLink('execution', 'browse', "executionID=$task->execution"), $executionName, '', "class='text-muted'") . '
  • '; } } if(count($story->tasks) == 0) { foreach($story->executions as $executionID => $execution) { echo "
  • " . html::a($this->createLink('execution', 'browse', "executionID=$executionID"), $execution->name, '', "class='text-muted'") . '
  • '; } } ?>
story->legendFromBug;?>
    id $fromBug->title'>" . html::a($this->createLink('bug', 'view', "bugID=$fromBug->id", '', true), "#$fromBug->id $fromBug->title", '', "class='iframe' data-width='80%'") . '';?>
story->legendBugs;?>
    id $bug->title'>" . html::a($this->createLink('bug', 'view', "bugID=$bug->id", '', true), "[B] #$bug->id $bug->title", '', "class='iframe' data-width='80%'") . ''; } ?>
story->legendCases;?>
    id $case->title'>" . html::a($this->createLink('testcase', 'view', "caseID=$case->id", '', true), "[C] #$case->id $case->title", '',"data-toggle='modal'") . ''; } ?>
printExtendFields($story, 'div', "position=right&inForm=0&inCell=1");?>
story->create); js::set('productID', $story->product); js::set('branch', $story->branch); js::set('moduleID', $story->module); js::set('storyType', $story->type); js::set('unlink', $lang->story->unlink); js::set('cancel', $lang->cancel); js::set('rawModule', $this->app->rawModule); ?>