47 lines
2.5 KiB
PHP
47 lines
2.5 KiB
PHP
<?php include '../../common/view/header.html.php';?>
|
|
<?php if(!isset($MR->id)):?>
|
|
<div id='mainContent'>
|
|
<div class="table-empty-tip">
|
|
<p>
|
|
<span class="text-muted"><?php echo $lang->mr->notFound;?></span>
|
|
<?php if(common::hasPriv('mr', 'create')):?>
|
|
<?php echo html::a($this->createLink('mr', 'create'), "<i class='icon icon-plus'></i> " . $lang->mr->create, '', "class='btn btn-info'");?>
|
|
<?php endif;?>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<?php else:?>
|
|
<div class="btn-toolbar pull-left">
|
|
<?php echo html::a($this->createLink('mr', 'browse'), '<i class="icon icon-back icon-sm"></i> ' . $lang->goback, '', "class='btn btn-secondary'");?>
|
|
<div class="divider"></div>
|
|
<div class="page-title">
|
|
<span class="label label-id"><?php echo $MR->id?></span>
|
|
<span class="text" title='<?php echo $MR->title;?>' style='color: blue'><?php echo html::a($rawMR->web_url, $MR->title, "_blank", "class='btn btn-link btn-active-text' style='color: blue'");?></span>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="mainContent" class="main-row">
|
|
<div class="main-col">
|
|
<div class="cell">
|
|
<div class="detail">
|
|
<div class="detail-title"><?php echo $lang->mr->description;?></div>
|
|
<div class="detail-content article-content">
|
|
<?php echo !empty($MR->description) ? $MR->description : "<div class='text-center text-muted'>" . $lang->noData . '</div>';?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="cell">
|
|
<div><?php echo $lang->mr->from . html::a($sourceProjectURL, $sourceProjectName . ":" . $MR->sourceBranch, "_blank", "class='btn btn-link btn-active-text' style='color: blue'") . $lang->mr->to . html::a($targetProjectURL, $targetProjectName . ":" . $MR->targetBranch, "_blank", "class='btn btn-link btn-active-text' style='color: blue'");?></div>
|
|
<div><?php if(isset($rawMR->head_pipeline->status)) echo $lang->mr->pipeline . $lang->mr->status . ": " . zget($lang->mr->pipelineStatus, $rawMR->head_pipeline->status, $lang->mr->pipelineUnknown);?></div>
|
|
<div><?php echo $lang->mr->mergeStatus . ": " . zget($lang->mr->mergeStatusList, $rawMR->merge_status);?></div>
|
|
<div><?php echo $lang->mr->MRHasConflicts . ": " . ($rawMR->has_conflicts ? $lang->mr->hasConflicts : $lang->mr->hasNoConflict);?></div>
|
|
</div>
|
|
|
|
<div class="cell"><?php echo sprintf($lang->mr->commandDocument, $httpRepoURL, $MR->sourceBranch, $branchPath, $MR->targetBranch, $branchPath, $MR->targetBranch);?></div>
|
|
</div>
|
|
</div>
|
|
|
|
<?php endif;?>
|
|
<?php include '../../common/view/footer.html.php';?>
|