Merge branch 'devops18_18046' into 'devops18'
* Fix bug#18046 and adjust code See merge request easycorp/zentaopms!1199
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="btn-toolbar pull-right">
|
||||
<?php if(common::hasPriv('gitlab', 'createTag')) common::printLink('gitlab', 'createTagPriv', "gitlabID=$gitlabID&projectID=$projectID", "<i class='icon icon-plus'></i> " . $lang->gitlab->createTagPriv, '', "class='btn btn-primary'");?>
|
||||
<?php common::printLink('gitlab', 'createTagPriv', "gitlabID=$gitlabID&projectID=$projectID", "<i class='icon icon-plus'></i> " . $lang->gitlab->createTagPriv, '', "class='btn btn-primary'");?>
|
||||
</div>
|
||||
</div>
|
||||
<?php if(empty($gitlabTagList)):?>
|
||||
|
||||
@@ -581,7 +581,11 @@ class repoModel extends model
|
||||
if($entry == '/' or empty($entry))$comments->page($pager, 't1.id');
|
||||
$comments = $comments->fetchAll('revision');
|
||||
|
||||
foreach($comments as $repoComment) $repoComment->comment = $this->replaceCommentLink($repoComment->comment);
|
||||
foreach($comments as $repoComment)
|
||||
{
|
||||
$repoComment->originalComment = $repoComment->comment;
|
||||
$repoComment->comment = $this->replaceCommentLink($repoComment->comment);
|
||||
}
|
||||
return $comments;
|
||||
}
|
||||
|
||||
|
||||
@@ -43,8 +43,7 @@ if(isset($entry)) $pathInfo .= '&type=file';
|
||||
<?php endif;?>
|
||||
<td><?php echo substr($log->time, 0, 10);?></td>
|
||||
<td><?php echo $log->committer;?></td>
|
||||
<?php $comment = htmlSpecialString($log->comment, ENT_QUOTES);?>
|
||||
<td title='<?php echo $comment?>' class='comment'><?php echo $log->comment?></td>
|
||||
<td title='<?php echo $log->originalComment?>' class='comment'><?php echo $log->comment?></td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user