@@ -239,14 +234,6 @@
$.trim($('i.octicon-check').parents('a.forked-branch').data('branch'));
});
- $('#show-form').click(function(){
- $('#create-pull-request').hide();
- $('#pull-request-form').show();
- });
- if(location.search.substr(1).split("&").indexOf("expand=1")!=-1){
- $('#show-form').click();
- }
-
@if(context.loginAccount.isDefined && originRepository.branchList.contains(originId) && forkedRepository.branchList.contains(forkedId)){
function checkConflict(from, to){
$('.check-conflict').show();
diff --git a/src/main/twirl/gitbucket/core/pulls/mergeguide.scala.html b/src/main/twirl/gitbucket/core/pulls/mergeguide.scala.html
index 3b40642..5c889d6 100644
--- a/src/main/twirl/gitbucket/core/pulls/mergeguide.scala.html
+++ b/src/main/twirl/gitbucket/core/pulls/mergeguide.scala.html
@@ -77,35 +77,68 @@
} else {
- @if(pullreq.isDraft){
-
This pull request is still a work in progress.
-
-
-
-
- Draft pull requests cannot be merged.
-
- } else {
- @if(status.hasMergePermission){
-
Merging can be performed automatically.
+ @if(pullreq.isDraft){
+
This pull request is still a work in progress.
+
+
+
- Merging can be performed automatically.
+ Draft pull requests cannot be merged.
} else {
-
This branch has no conflicts with the base branch.
-
- Only those with write access to this repository can merge pull requests.
-
+ @if(status.hasMergePermission){
+
Merging can be performed automatically.
+
+ Merging can be performed automatically.
+
+ } else {
+
This branch has no conflicts with the base branch.
+
+ Only those with write access to this repository can merge pull requests.
+
+ }
}
- }
}
}
}
-
- You can also merge branches on the
command line.
+
+
+
+
+
+ You can also merge branches on the
command line.
@if(status.hasConflict){
@@ -161,44 +194,7 @@
-
-
-
-
-