mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-10 07:25:50 +01:00
Replace new issue button with new pull request button
This commit is contained in:
@@ -21,7 +21,9 @@
|
||||
@if(hasWritePermission || loginAccount.map(_.userName == issue.openedUserName).getOrElse(false)){
|
||||
<a class="btn" href="#" id="edit">Edit</a>
|
||||
}
|
||||
<a class="btn btn-success" href="@url(repository)/issues/new">New issue</a>
|
||||
@if(loginAccount.isDefined){
|
||||
<a class="btn btn-success" href="@url(repository)/compare">New pull request</a>
|
||||
}
|
||||
</div>
|
||||
<div class="edit-title pull-right" style="display: none;">
|
||||
<a class="btn" href="#" id="update">Save</a> <a href="#" id="cancel">Cancel</a>
|
||||
@@ -92,7 +94,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
<script>
|
||||
<script><script>
|
||||
$(function(){
|
||||
// Determine active tab from hash
|
||||
if(location.hash == '#commits'){
|
||||
|
||||
Reference in New Issue
Block a user