* code for task#1200.

This commit is contained in:
chencongzhi520@gmail.com
2013-04-27 05:49:28 +00:00
parent 2dabae4f6c
commit 1bf3e2ad35
7 changed files with 32 additions and 16 deletions

View File

@@ -150,7 +150,6 @@ $lang->story->legendChildStories = 'Child story';
$lang->story->legendSpec = 'Spec';
$lang->story->legendVerify = 'Verify standard';
$lang->story->legendHistory = 'History';
$lang->story->legendVersion = 'Versions';
$lang->story->legendMisc = 'Misc';
$lang->story->lblChange = 'Change';

View File

@@ -150,7 +150,6 @@ $lang->story->legendChildStories = '细分需求';
$lang->story->legendSpec = '需求描述';
$lang->story->legendVerify = '验收标准';
$lang->story->legendHistory = '历史记录';
$lang->story->legendVersion = '历史版本';
$lang->story->legendMisc = '其他相关';
$lang->story->lblChange = '变更需求';

View File

@@ -13,7 +13,21 @@
<?php include '../../common/view/header.html.php';?>
<?php include '../../common/view/kindeditor.html.php';?>
<div id='titlebar'>
<div id='main' <?php if($story->deleted) echo "class='deleted'";?>>STORY #<?php echo $story->id . ' ' . $story->title;?></div>
<div id='main' <?php if($story->deleted) echo "class='deleted'";?>>STORY #<?php echo $story->id . ' ' . $story->title;?>
<?php if($story->version > 1):?>
<span class='f-12px gray'>
<?php
echo "(";
for($i = $story->version; $i >= 1; $i --)
{
$class = $i == $version ? "class='blue'" : "class='gray'";
echo html::a(inlink('view', "storyID=$story->id&version=$i"), '#' . $i, '', "$class");
}
echo ")";
?>
</span>
<?php endif;?>
</div>
<div>
<?php
$browseLink = $app->session->storyList != false ? $app->session->storyList : $this->createLink('product', 'browse', "productID=$story->product&moduleID=$story->module");
@@ -52,10 +66,6 @@
<table class='cont-rt5'>
<tr valign='top'>
<td>
<fieldset>
<legend><?php echo $lang->story->legendVersion;?></legend>
<div><?php for($i = $story->version; $i >= 1; $i --) echo html::a(inlink('view', "storyID=$story->id&version=$i"), "#$i");?></div>
</fieldset>
<fieldset>
<legend><?php echo $lang->story->legendSpec;?></legend>
<div class='content'><?php echo $story->spec;?></div>

View File

@@ -336,6 +336,7 @@ class testcase extends control
$this->view->position[] = $this->lang->testcase->view;
$this->view->case = $case;
$this->view->version = $version ? $version : $case->version;
$this->view->productName = $this->products[$productID];
$this->view->modulePath = $this->tree->getParents($case->module);
$this->view->users = $this->user->getPairs('noletter');

View File

@@ -97,7 +97,6 @@ $lang->testcase->legendAction = 'Action';
$lang->testcase->legendHistory = 'History';
$lang->testcase->legendComment = 'Comment';
$lang->testcase->legendProduct = 'Product & module';
$lang->testcase->legendVersion = 'Versions';
$lang->testcase->confirmDelete = 'Are you sure to delete this case?';
$lang->testcase->same = 'The same as above';

View File

@@ -97,7 +97,6 @@ $lang->testcase->legendAction = '操作';
$lang->testcase->legendHistory = '历史记录';
$lang->testcase->legendComment = '备注';
$lang->testcase->legendProduct = '产品模块';
$lang->testcase->legendVersion = '版本历史';
$lang->testcase->confirmDelete = '您确认要删除该测试用例吗?';
$lang->testcase->same = '同上';

View File

@@ -14,7 +14,22 @@
<?php include '../../common/view/colorize.html.php';?>
<?php include '../../common/view/kindeditor.html.php';?>
<div id='titlebar'>
<div id='main' <?php if($case->deleted) echo "class='deleted'";?>>CASE #<?php echo $case->id . ' ' . $case->title;?></div>
<div id='main' <?php if($case->deleted) echo "class='deleted'";?>>
CASE #<?php echo $case->id . ' ' . $case->title;?>
<?php if($case->version > 1):?>
<span class='f-12px gray'>
<?php
echo "(";
for($i = $case->version; $i >= 1; $i --)
{
$class = $i == $version ? "class='blue'" : "class='gray'";
echo html::a(inlink('view', "caseID=$case->id&version=$i"), '#' . $i, '', "$class");
}
echo ")";
?>
</span>
<?php endif;?>
</div>
<div>
<?php
$browseLink = $app->session->caseList != false ? $app->session->caseList : $this->createLink('testcase', 'browse', "productID=$case->product");
@@ -52,12 +67,6 @@
<table class='cont-rt5'>
<tr valign='top'>
<td>
<fieldset>
<legend><?php echo $lang->testcase->legendVersion;?></legend>
<div>
<?php for($i = $case->version; $i >= 1; $i --) echo html::a(inlink('view', "caseID=$case->id&version=$i"), '#' . $i) . ' ';?>
</div>
</fieldset>
<fieldset>
<legend><?php echo $lang->testcase->precondition;?></legend>
<?php echo $case->precondition;?>