mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-09 15:05:50 +01:00
(refs #254)Change comment action to "delete_branch" from "delete".
This commit is contained in:
@@ -113,7 +113,7 @@ trait PullRequestsControllerBase extends ControllerBase {
|
|||||||
recordDeleteBranchActivity(repository.owner, repository.name, userName, branchName)
|
recordDeleteBranchActivity(repository.owner, repository.name, userName, branchName)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
createComment(repository.owner, repository.name, userName, issueId, branchName, "delete")
|
createComment(repository.owner, repository.name, userName, issueId, branchName, "delete_branch")
|
||||||
redirect(s"/${repository.owner}/${repository.name}/pull/${issueId}")
|
redirect(s"/${repository.owner}/${repository.name}/pull/${issueId}")
|
||||||
} getOrElse NotFound
|
} getOrElse NotFound
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
@import context._
|
@import context._
|
||||||
@import view.helpers._
|
@import view.helpers._
|
||||||
@comments.map { comment =>
|
@comments.map { comment =>
|
||||||
@if(comment.action != "close" && comment.action != "reopen" && comment.action != "delete"){
|
@if(comment.action != "close" && comment.action != "reopen" && comment.action != "delete_branch"){
|
||||||
<div class="issue-avatar-image">@avatar(comment.commentedUserName, 48)</div>
|
<div class="issue-avatar-image">@avatar(comment.commentedUserName, 48)</div>
|
||||||
<div class="box issue-comment-box" id="comment-@comment.commentId">
|
<div class="box issue-comment-box" id="comment-@comment.commentId">
|
||||||
<div class="box-header-small">
|
<div class="box-header-small">
|
||||||
@@ -63,7 +63,7 @@
|
|||||||
@user(comment.commentedUserName, styleClass="username strong") reopened the issue @datetime(comment.registeredDate)
|
@user(comment.commentedUserName, styleClass="username strong") reopened the issue @datetime(comment.registeredDate)
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
@if(comment.action == "delete"){
|
@if(comment.action == "delete_branch"){
|
||||||
<div class="small issue-comment-action">
|
<div class="small issue-comment-action">
|
||||||
<span class="label">Deleted</span>
|
<span class="label">Deleted</span>
|
||||||
@avatar(comment.commentedUserName, 20)
|
@avatar(comment.commentedUserName, 20)
|
||||||
|
|||||||
Reference in New Issue
Block a user