* Correct the issue that when the MR is deleted in GitLab.

This commit is contained in:
dingguodong
2021-11-10 17:39:12 +08:00
parent 763a7e0175
commit b9a2673f5a
5 changed files with 58 additions and 9 deletions
+12
View File
@@ -11,6 +11,18 @@
<?php include '../../common/view/header.html.php';?>
<?php js::set('gitlabID', $MR->gitlabID);?>
<?php js::set('projectID', $MR->sourceProject);?>
<!-- If this mr is deleted in GitLab, then show this part to user. -->
<?php if(empty($rawMR) or !isset($rawMR->id)): ?>
<div id='mainContent'>
<div class="table-empty-tip">
<p>
<span class="text-muted"><?php echo $lang->mr->notFound; ?></span>
<?php echo html::a($this->createLink('mr', 'browse'), "<i class='icon icon-plus'></i> " . $lang->mr->browse, '', "class='btn btn-info'"); ?>
</p>
</div>
</div>
<?php die; endif;?>
<div id='mainContent' class='main-row'>
<div class='main-col main-content'>
<div class='center-block'>