mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-12 16:35:52 +01:00
Fix styles of issues and pull requests
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
condition: gitbucket.core.service.IssuesService.IssueSearchCondition)(implicit context: gitbucket.core.controller.Context)
|
condition: gitbucket.core.service.IssuesService.IssueSearchCondition)(implicit context: gitbucket.core.controller.Context)
|
||||||
@import context._
|
@import context._
|
||||||
@import gitbucket.core.view.helpers._
|
@import gitbucket.core.view.helpers._
|
||||||
<ul class="nav nav-pills-group pull-left fill-width">
|
<ul class="nav nav-pills-group pull-left fill-width" style="margin-bottom: 10px;">
|
||||||
<li class="@if(filter == "created_by"){active} first">
|
<li class="@if(filter == "created_by"){active} first">
|
||||||
<a href="@path/dashboard/@active/created_by@condition.copy(author = None, assigned = None).toURL">Created</a>
|
<a href="@path/dashboard/@active/created_by@condition.copy(author = None, assigned = None).toURL">Created</a>
|
||||||
</li>
|
</li>
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
</li>
|
</li>
|
||||||
<li class="pull-right">
|
<li class="pull-right">
|
||||||
<form method="GET" id="search-filter-form" action="@path/dashboard/@active" style="margin-bottom: 0px;">
|
<form method="GET" id="search-filter-form" action="@path/dashboard/@active" style="margin-bottom: 0px;">
|
||||||
<input type="text" id="search-filter-box" class="form-control input-lg" name="q" style="width: 400px;"
|
<input type="text" id="search-filter-box" class="form-control input-lg" name="q" style="width: 400px; font-size: 100%;"
|
||||||
value="is:@{if(active == "issues") "issue" else "pr"} @condition.toFilterString"/>
|
value="is:@{if(active == "issues") "issue" else "pr"} @condition.toFilterString"/>
|
||||||
</form>
|
</form>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
@@ -31,22 +31,22 @@
|
|||||||
</span>
|
</span>
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
@if(issue.closed) {
|
<div style="margin-bottom: 15px">
|
||||||
<span class="label label-important issue-status">Closed</span>
|
@if(issue.closed) {
|
||||||
} else {
|
<span class="label label-important issue-status">Closed</span>
|
||||||
<span class="label label-success issue-status">Open</span>
|
} else {
|
||||||
}
|
<span class="label label-success issue-status">Open</span>
|
||||||
<span class="muted">
|
|
||||||
@user(issue.openedUserName, styleClass="username strong") opened this issue @helper.html.datetimeago(issue.registeredDate) - @defining(
|
|
||||||
comments.count( _.action.contains("comment") )
|
|
||||||
){ count =>
|
|
||||||
@count @plural(count, "comment")
|
|
||||||
}
|
}
|
||||||
</span>
|
<span class="muted">
|
||||||
<br/><br/>
|
@user(issue.openedUserName, styleClass="username strong") opened this issue @helper.html.datetimeago(issue.registeredDate) - @defining(
|
||||||
|
comments.count( _.action.contains("comment") )
|
||||||
|
){ count =>
|
||||||
|
@count @plural(count, "comment")
|
||||||
|
}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
<br/>
|
<div class="row" style="margin-top: 15px;">
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
@commentlist(Some(issue), comments, hasWritePermission, repository)
|
@commentlist(Some(issue), comments, hasWritePermission, repository)
|
||||||
@commentform(issue, true, hasWritePermission, repository)
|
@commentform(issue, true, hasWritePermission, repository)
|
||||||
|
|||||||
@@ -11,8 +11,8 @@
|
|||||||
@import gitbucket.core.view.helpers._
|
@import gitbucket.core.view.helpers._
|
||||||
@import gitbucket.core.model._
|
@import gitbucket.core.model._
|
||||||
|
|
||||||
<div class="row-fluid">
|
<div class="row">
|
||||||
<div class="span10">
|
<div class="col-md-10">
|
||||||
<div id="comment-list">
|
<div id="comment-list">
|
||||||
@issues.html.commentlist(Some(issue), comments, hasWritePermission, repository, Some(pullreq))
|
@issues.html.commentlist(Some(issue), comments, hasWritePermission, repository, Some(pullreq))
|
||||||
</div>
|
</div>
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
@issues.html.commentform(issue, !merged, hasWritePermission, repository)
|
@issues.html.commentform(issue, !merged, hasWritePermission, repository)
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
<div class="span2">
|
<div class="col-md-2">
|
||||||
@issues.html.issueinfo(Some(issue), comments, issueLabels, collaborators, milestones, labels, hasWritePermission, repository)
|
@issues.html.issueinfo(Some(issue), comments, issueLabels, collaborators, milestones, labels, hasWritePermission, repository)
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -36,32 +36,33 @@
|
|||||||
</span>
|
</span>
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
@if(issue.closed) {
|
<div style="margin-bottom: 15px">
|
||||||
@comments.flatMap @{
|
@if(issue.closed) {
|
||||||
case comment: IssueComment => Some(comment)
|
@comments.flatMap @{
|
||||||
case _ => None
|
case comment: IssueComment => Some(comment)
|
||||||
}.find(_.action == "merge").map{ comment =>
|
case _ => None
|
||||||
<span class="label label-info issue-status">Merged</span>
|
}.find(_.action == "merge").map{ comment =>
|
||||||
<span class="muted">
|
<span class="label label-info issue-status">Merged</span>
|
||||||
@user(comment.commentedUserName, styleClass="username strong") merged @commits.size @plural(commits.size, "commit")
|
<span class="muted">
|
||||||
into <code>@pullreq.userName:@pullreq.branch</code> from <code>@pullreq.requestUserName:@pullreq.requestBranch</code>
|
@user(comment.commentedUserName, styleClass="username strong") merged @commits.size @plural(commits.size, "commit")
|
||||||
@helper.html.datetimeago(comment.registeredDate)
|
into <code>@pullreq.userName:@pullreq.branch</code> from <code>@pullreq.requestUserName:@pullreq.requestBranch</code>
|
||||||
</span>
|
@helper.html.datetimeago(comment.registeredDate)
|
||||||
}.getOrElse {
|
</span>
|
||||||
<span class="label label-important issue-status">Closed</span>
|
}.getOrElse {
|
||||||
|
<span class="label label-important issue-status">Closed</span>
|
||||||
|
<span class="muted">
|
||||||
|
@user(issue.openedUserName, styleClass="username strong") wants to merge @commits.size @plural(commits.size, "commit")
|
||||||
|
into <code>@pullreq.userName:@pullreq.branch</code> from <code>@pullreq.requestUserName:@pullreq.requestBranch</code>
|
||||||
|
</span>
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
<span class="label label-success issue-status">Open</span>
|
||||||
<span class="muted">
|
<span class="muted">
|
||||||
@user(issue.openedUserName, styleClass="username strong") wants to merge @commits.size @plural(commits.size, "commit")
|
@user(issue.openedUserName, styleClass="username strong") wants to merge @commits.size @plural(commits.size, "commit")
|
||||||
into <code>@pullreq.userName:@pullreq.branch</code> from <code>@pullreq.requestUserName:@pullreq.requestBranch</code>
|
into <code>@pullreq.userName:@pullreq.branch</code> from <code>@pullreq.requestUserName:@pullreq.requestBranch</code>
|
||||||
</span>
|
</span>
|
||||||
}
|
}
|
||||||
} else {
|
</div>
|
||||||
<span class="label label-success issue-status">Open</span>
|
|
||||||
<span class="muted">
|
|
||||||
@user(issue.openedUserName, styleClass="username strong") wants to merge @commits.size @plural(commits.size, "commit")
|
|
||||||
into <code>@pullreq.userName:@pullreq.branch</code> from <code>@pullreq.requestUserName:@pullreq.requestBranch</code>
|
|
||||||
</span>
|
|
||||||
}
|
|
||||||
<br/><br/>
|
|
||||||
<ul class="nav nav-tabs fill-width pull-left" id="pullreq-tab">
|
<ul class="nav nav-tabs fill-width pull-left" id="pullreq-tab">
|
||||||
<li class="active"><a href="#conversation">Conversation <span class="badge">@comments.flatMap @{
|
<li class="active"><a href="#conversation">Conversation <span class="badge">@comments.flatMap @{
|
||||||
case comment: IssueComment => Some(comment)
|
case comment: IssueComment => Some(comment)
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ h6 {
|
|||||||
/*font-size: 14px;*/
|
/*font-size: 14px;*/
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mega-octicon{
|
.mega-octicon{
|
||||||
width: 32px;
|
width: 32px;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
@@ -74,6 +75,10 @@ blockquote p {
|
|||||||
border-bottom-width: 1px;
|
border-bottom-width: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tab-content {
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
.danger {
|
.danger {
|
||||||
color: #900;
|
color: #900;
|
||||||
}
|
}
|
||||||
@@ -82,6 +87,19 @@ blockquote p {
|
|||||||
color: #F28722;
|
color: #F28722;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dl {
|
||||||
|
margin: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
dd {
|
||||||
|
margin-left: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
hr {
|
||||||
|
margin-top: 4px;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
/* ======================================================================== */
|
/* ======================================================================== */
|
||||||
/* Global Header */
|
/* Global Header */
|
||||||
/* ======================================================================== */
|
/* ======================================================================== */
|
||||||
@@ -345,19 +363,6 @@ th.box-header .octicon {
|
|||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
dl {
|
|
||||||
margin: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
dd {
|
|
||||||
margin-left: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
hr {
|
|
||||||
margin-top: 4px;
|
|
||||||
margin-bottom: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
img.avatar {
|
img.avatar {
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
-webkit-border-radius: 4px;
|
-webkit-border-radius: 4px;
|
||||||
|
|||||||
Reference in New Issue
Block a user