79 lines
3.9 KiB
PHP
79 lines
3.9 KiB
PHP
<?php
|
|
/**
|
|
* The build view file of project module of ZenTaoPMS.
|
|
*
|
|
* @copyright Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
|
|
* @license ZPL (http://zpl.pub/page/zplv12.html)
|
|
* @author Chunsheng Wang <chunsheng@cnezsoft.com>
|
|
* @package project
|
|
* @version $Id: build.html.php 4262 2013-01-24 08:48:56Z chencongzhi520@gmail.com $
|
|
* @link http://www.zentao.net
|
|
*/
|
|
?>
|
|
<?php include '../../common/view/header.html.php';?>
|
|
<?php js::set('confirmDelete', $lang->build->confirmDelete)?>
|
|
<div id="mainMenu" class="clearfix">
|
|
<div class="btn-toolbar pull-left">
|
|
<span class='btn btn-link btn-active-text'> <span class='text'><?php echo $lang->project->build;?></span></span>
|
|
</div>
|
|
<div class="btn-toolbar pull-right">
|
|
<?php common::printLink('build', 'create', "project=$project->id", "<i class='icon icon-plus'> </i>" . $lang->build->create, '', "class='btn btn-primary'");?>
|
|
</div>
|
|
</div>
|
|
<div id="mainContent">
|
|
<div class='main-table'>
|
|
<table class="table" id='buildList'>
|
|
<thead>
|
|
<tr class='text-center'>
|
|
<th class='w-id'><?php echo $lang->build->id;?></th>
|
|
<th class='w-120px'><?php echo $lang->build->product;?></th>
|
|
<th><?php echo $lang->build->name;?></th>
|
|
<th><?php echo $lang->build->scmPath;?></th>
|
|
<th><?php echo $lang->build->filePath;?></th>
|
|
<th class='w-100px'><?php echo $lang->build->date;?></th>
|
|
<th class='w-user'><?php echo $lang->build->builder;?></th>
|
|
<th class='c-actions-3'><?php echo $lang->actions;?></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach($builds as $build):?>
|
|
<tr>
|
|
<td class='text-center'><?php echo $build->id;?></td>
|
|
<td class='nobr' title='<?php echo $build->productName?>'><?php echo $build->productName;?></td>
|
|
<td class='nobr'>
|
|
<?php if($build->branchName) echo "<span class='label label-info label-badge'>{$build->branchName}</span>"?>
|
|
<?php echo html::a($this->createLink('build', 'view', "build=$build->id"), $build->name);?>
|
|
</td>
|
|
<td title="<?php echo $build->scmPath?>"><?php echo strpos($build->scmPath, 'http') === 0 ? html::a($build->scmPath) : $build->scmPath;?></td>
|
|
<td title="<?php echo $build->filePath?>"><?php echo strpos($build->filePath, 'http') === 0 ? html::a($build->filePath) : $build->filePath;?></td>
|
|
<td><?php echo $build->date?></td>
|
|
<td><?php echo $users[$build->builder]?></td>
|
|
<td class='c-actions'>
|
|
<div class='more'>
|
|
<?php
|
|
if(common::hasPriv('build', 'delete', $build))
|
|
{
|
|
$deleteURL = $this->createLink('build', 'delete', "buildID=$build->id&confirm=yes");
|
|
echo html::a("javascript:ajaxDelete(\"$deleteURL\",\"buildList\",confirmDelete)", '<i class="icon-trash"></i>', '', "class='btn' title='{$lang->build->delete}'");
|
|
}
|
|
?>
|
|
</div>
|
|
<?php
|
|
if(common::hasPriv('build', 'linkstory') and common::hasPriv('build', 'view'))
|
|
{
|
|
echo html::a($this->createLink('build', 'view', "buildID=$build->id&type=story&link=true"), "<i class='icon icon-link'></i>", '', "class='btn' title='{$lang->build->linkStory}'");
|
|
}
|
|
common::printIcon('testtask', 'create', "product=$build->product&project=$project->id&build=$build->id", $build, 'list', 'bullhorn');
|
|
$lang->project->bug = $lang->project->viewBug;
|
|
common::printIcon('project', 'bug', "project=$project->id&orderBy=status&build=$build->id", $build, 'list');
|
|
common::printIcon('build', 'edit', "buildID=$build->id", $build, 'list');
|
|
?>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach;?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<?php include '../../common/view/footer.html.php';?>
|