Replace new issue button with new pull request button

This commit is contained in:
Naoki Takezoe
2016-02-21 15:56:12 +09:00
parent c47d50d0df
commit cb64f8eab8

View File

@@ -21,7 +21,9 @@
@if(hasWritePermission || loginAccount.map(_.userName == issue.openedUserName).getOrElse(false)){ @if(hasWritePermission || loginAccount.map(_.userName == issue.openedUserName).getOrElse(false)){
<a class="btn" href="#" id="edit">Edit</a> <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>
<div class="edit-title pull-right" style="display: none;"> <div class="edit-title pull-right" style="display: none;">
<a class="btn" href="#" id="update">Save</a> <a href="#" id="cancel">Cancel</a> <a class="btn" href="#" id="update">Save</a> <a href="#" id="cancel">Cancel</a>
@@ -92,7 +94,7 @@
} }
} }
} }
<script> <script><script>
$(function(){ $(function(){
// Determine active tab from hash // Determine active tab from hash
if(location.hash == '#commits'){ if(location.hash == '#commits'){