+ add build page of project.
This commit is contained in:
@@ -81,6 +81,7 @@ $lang->project->menu->list = '%s';
|
||||
$lang->project->menu->task = array('link' => '任务列表|project|task|projectID=%s', 'subModule' => 'task');
|
||||
$lang->project->menu->story = array('link' => '需求列表|project|story|projectID=%s', 'alias' => 'linkstory');
|
||||
$lang->project->menu->bug = 'Bug列表|project|bug|projectID=%s';
|
||||
$lang->project->menu->build = array('link' => 'Build列表|project|build|projectID=%s', 'subModule' => 'build');
|
||||
$lang->project->menu->burn = '燃烧图|project|burn|projectID=%s';
|
||||
$lang->project->menu->team = array('link' => '团队成员|project|team|projectID=%s', 'alias' => 'managemembers');
|
||||
$lang->project->menu->line = $lang->colon;
|
||||
@@ -91,6 +92,7 @@ $lang->project->menu->product= '关联产品|project|manageproducts|projectID=%s
|
||||
|
||||
$lang->project->menu->create = array('link' => '新增项目|project|create', 'float' => 'right');
|
||||
$lang->task->menu = $lang->project->menu;
|
||||
$lang->build->menu = $lang->project->menu;
|
||||
|
||||
/* QA视图菜单设置。*/
|
||||
$lang->bug->menu->product = '%s';
|
||||
@@ -130,6 +132,7 @@ $lang->menugroup->release = 'product';
|
||||
$lang->menugroup->story = 'product';
|
||||
$lang->menugroup->productplan = 'product';
|
||||
$lang->menugroup->task = 'project';
|
||||
$lang->menugroup->build = 'project';
|
||||
$lang->menugroup->company = 'admin';
|
||||
$lang->menugroup->convert = 'admin';
|
||||
$lang->menugroup->user = 'company';
|
||||
|
||||
@@ -91,6 +91,7 @@ $lang->resource->project->edit = 'edit';
|
||||
$lang->resource->project->delete = 'delete';
|
||||
$lang->resource->project->task = 'task';
|
||||
$lang->resource->project->story = 'story';
|
||||
$lang->resource->project->build = 'build';
|
||||
$lang->resource->project->bug = 'bug';
|
||||
$lang->resource->project->burn = 'burn';
|
||||
$lang->resource->project->burnData = 'burnData';
|
||||
|
||||
@@ -184,6 +184,23 @@ class project extends control
|
||||
$this->display();
|
||||
}
|
||||
|
||||
/* 浏览某一个项目下面的build。*/
|
||||
public function build($projectID = 0)
|
||||
{
|
||||
/* 公共的操作。*/
|
||||
$project = $this->commonAction($projectID);
|
||||
|
||||
/* 设定header和position信息。*/
|
||||
$this->view->header->title = $project->name . $this->lang->colon . $this->lang->project->build;
|
||||
$this->view->position[] = html::a(inlink('browse', "projectID=$projectID"), $project->name);
|
||||
$this->view->position[] = $this->lang->project->build;
|
||||
|
||||
/* 查找build列表。*/
|
||||
$this->view->builds = $this->loadModel('build')->getProjectBuilds((int)$projectID);
|
||||
|
||||
$this->display();
|
||||
}
|
||||
|
||||
/* 某一个项目的燃烧图。*/
|
||||
public function burn($projectID = 0)
|
||||
{
|
||||
|
||||
@@ -74,12 +74,13 @@ $lang->project->childProjects= '子项目';
|
||||
$lang->project->task = '任务列表';
|
||||
$lang->project->story = '需求列表';
|
||||
$lang->project->bug = 'Bug列表';
|
||||
$lang->project->build = 'Build列表';
|
||||
$lang->project->burn = '燃烧图';
|
||||
$lang->project->burnData = '燃烧图数据';
|
||||
|
||||
$lang->project->beginAndEnd = '起止时间';
|
||||
$lang->project->lblStats = '工时统计';
|
||||
$lang->project->stats = '总共预计『%s』工时<br />已经消耗『%s』工时<br />预计剩余『%s』工时';
|
||||
$lang->project->beginAndEnd = '起止时间';
|
||||
$lang->project->lblStats = '工时统计';
|
||||
$lang->project->stats = '总共预计『%s』工时<br />已经消耗『%s』工时<br />预计剩余『%s』工时';
|
||||
$lang->project->oneLineStats = "项目『%s』, 代号为『%s』, 相关产品为『%s』,『%s』开始,『%s』结束,总预计『%s』工时,已消耗『%s』工时,预计剩余『%s』工时。";
|
||||
|
||||
$lang->project->statusList->wait = '未开始';
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
/**
|
||||
* The build view file of project module of ZenTaoMS.
|
||||
*
|
||||
* ZenTaoMS is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* ZenTaoMS is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with ZenTaoMS. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* @copyright Copyright: 2009 Chunsheng Wang
|
||||
* @author Chunsheng Wang <wwccss@263.net>
|
||||
* @package project
|
||||
* @version $Id$
|
||||
* @link http://www.zentao.cn
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/header.html.php';?>
|
||||
<?php include '../../common/tablesorter.html.php';?>
|
||||
<div class='yui-d0'>
|
||||
<div id='featurebar'>
|
||||
<div class='f-right'><?php common::printLink('build', 'create', "project=$project->id", $lang->build->create);?></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class='yui-d0'>
|
||||
<table class='table-1 fixed tablesorter'>
|
||||
<thead>
|
||||
<tr class='colhead'>
|
||||
<th><?php echo $lang->build->product;?></th>
|
||||
<th><?php echo $lang->build->name;?></th>
|
||||
<th class='w-p30'><?php echo $lang->build->scmPath;?></th>
|
||||
<th class='w-p30'><?php echo $lang->build->filePath;?></th>
|
||||
<th><?php echo $lang->build->date;?></th>
|
||||
<th><?php echo $lang->build->builder;?></th>
|
||||
<th><?php echo $lang->action;?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($builds as $build):?>
|
||||
<tr class='a-center'>
|
||||
<td><?php echo $build->productName;?></td>
|
||||
<td><?php echo html::a($this->createLink('build', 'view', "build=$build->id"), $build->name);?></td>
|
||||
<td class='a-left nobr'><?php echo $build->scmPath?></td>
|
||||
<td class='a-left nobr'><?php echo $build->filePath?></td>
|
||||
<td><?php echo $build->date?></td>
|
||||
<td><?php echo $build->builder?></td>
|
||||
<td>
|
||||
<?php
|
||||
common::printLink('build', 'edit', "buildID=$build->id", $lang->edit);
|
||||
common::printLink('build', 'delete', "buildID=$build->id", $lang->delete, 'hiddenwin');
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php include '../../common/footer.html.php';?>
|
||||
Reference in New Issue
Block a user