Fix presentation of pull request page

This commit is contained in:
Naoki Takezoe
2016-05-30 09:19:11 +09:00
parent 2b730ef180
commit 0d4047b4ee
3 changed files with 9 additions and 7 deletions

View File

@@ -135,15 +135,15 @@
</div>
}
</div>
<div id="confirm-merge-form" style="display: none;">
<div id="confirm-merge-form" style="display: none; padding: 12px;">
<form method="POST" action="@url(originRepository)/pull/@pullreq.issueId/merge">
<div class="strong">
Merge pull request #@issue.issueId from @{pullreq.requestUserName}/@{pullreq.requestBranch}
</div>
<span id="error-message" class="error"></span>
<textarea name="message" style="height: 80px;" class="form-control">@issue.title</textarea>
<textarea name="message" style="height: 80px; margin-top: 8px; margin-bottom: 8px;" class="form-control">@issue.title</textarea>
<div>
<input type="button" class="btn" value="Cancel" id="cancel-merge-pull-request"/>
<input type="button" class="btn btn-default" value="Cancel" id="cancel-merge-pull-request"/>
<input type="submit" class="btn btn-success" value="Confirm merge"/>
</div>
</form>
@@ -170,6 +170,10 @@ $(function(){
$('#merge-pull-request').hide();
$('#confirm-merge-form').show();
});
$('#cancel-merge-pull-request').click(function(){
$('#merge-pull-request').show();
$('#confirm-merge-form').hide();
});
@forkedRepository.sshUrl.map { sshUrl =>
$('#repository-url-http').click(function(e){

View File

@@ -28,7 +28,7 @@
<div class="edit-title pull-right" style="display: none;">
<a class="btn btn-success" href="#" id="update">Save</a> <a class="btn btn-default" href="#" id="cancel">Cancel</a>
</div>
<h1>
<h1 class="body-title">
<span class="show-title">
<span id="show-title">@issue.title</span>
<span class="muted">#@issue.issueId</span>

View File

@@ -833,7 +833,6 @@ a.issue-title {
font-size: 120%;
}
/*
.label-success {
background-color: #6cc644;
}
@@ -841,7 +840,6 @@ a.issue-title {
.label-important {
background-color: #bd2c00;
}
*/
ul.label-list {
list-style-type: none;