Fix styles
1 parent a11f711 commit 5d2d36dccf398a764965e1562af536ced0a50f18
@Naoki Takezoe Naoki Takezoe authored on 12 Sep 2017
Showing 4 changed files
View
3
■■
src/main/twirl/gitbucket/core/menu.scala.html
<div class="forked">
forked from <a href="@context.path/@x.parentUserName/@x.parentRepositoryName">@x.parentUserName/@x.parentRepositoryName</a>
</div>
}
@x.description.map { description =>
<div class="normal muted" style="margin-left: 36px; font-size: 80%;">@Html(helpers.detectAndRenderLinks(description, repository))</div>
}
}
</div>
</div>
</div>
View
6
src/main/twirl/gitbucket/core/repo/branches.scala.html
@gitbucket.core.html.menu("branches", repository){
<table class="table table-hover branches">
<thead>
<tr>
<th style="background: #f5f5f5;color: #666;" colspan="3">All branches</th>
<th colspan="3">All branches</th>
</tr>
</thead>
<tbody>
@branchInfo.map { case (branch, prs, isProtected) =>
<tr>
<td class="branch-details">
@if(isProtected){ <span class="octicon octicon-shield" title="This branch is protected"></span> }
<a href="@helpers.url(repository)/tree/@helpers.encodeRefName(branch.name)" class="branch-name">@branch.name</a>
<a href="@helpers.url(repository)/tree/@helpers.encodeRefName(branch.name)">@branch.name</a>
<span class="branch-meta">
<span>Updated @gitbucket.core.helper.html.datetimeago(branch.commitTime, false)
by <span>@helpers.user(branch.committerName, branch.committerEmailAddress, "muted-link")</span>
</span>
</div>
}
}
</td>
<td>
<td class="text-right">
<div class="branch-action">
@if(repository.repository.defaultBranch != branch.name){
@branch.mergeInfo.map{ info =>
@prs.map{ case (pull, issue) =>
View
11
src/main/twirl/gitbucket/core/repo/files.scala.html
} else {
s"${(repository.name :: pathList).mkString("/")} at ${helpers.encodeRefName(branch)} - ${repository.owner}/${repository.name}"
}, Some(repository)) {
@gitbucket.core.html.menu("files", repository, Some(branch), info, error){
@if(pathList.isEmpty) {
@repository.repository.description.map { description =>
<p class="pc" style="margin-bottom: 10px;">
<span class="normal muted">@Html(helpers.detectAndRenderLinks(description, repository))</span>
</p>
}
}
<div class="head" style="height: 24px;">
<div class="pull-right">
<div class="btn-group">
<a href="@helpers.url(repository)/find/@helpers.encodeRefName(branch)" class="btn btn-sm btn-default" data-hotkey="t"><i class="octicon octicon-search"></i></a>
*@
<tr>
<th colspan="4" class="latest-commit">
<div>
<div class="pull-right align-right monospace" style="line-height: 18px;">
<a href="@helpers.url(repository)/commit/@latestCommit.id" class="commit-id"><span class="muted">latest commit</span> @latestCommit.id.substring(0, 10)</a>
<div class="pull-right align-right" style="line-height: 18px;">
<a href="@helpers.url(repository)/commit/@latestCommit.id" class="commit-id"><span class="muted">latest commit</span> <span class="monospace">@latestCommit.id.substring(0, 10)</span></a>
</div>
<div class="author-info">
<div class="author">
@helpers.avatar(latestCommit, 20)
View
20
src/main/webapp/assets/common/css/gitbucket.css
/****************************************************************************/
/* Head Menu */
/****************************************************************************/
div.headbar {
padding-top: 19px;
margin-bottom: 20px;
padding-top: 4px;
margin-bottom: 8px;
}
 
/****************************************************************************/
/* Create Repository */
div.repository-content {
margin-left: 40px;
}
 
table.branches>thead>tr>th, table.branches>tbody>tr>td{
table.branches>thead>tr>th {
padding: 12px;
}
 
table.branches>tbody>tr>td{
padding: 12px;
line-height: 30px;
}
 
.branches .muted-link{
color: #777;
}
 
.branches .muted-link:hover{
color: #4183c4;
}
 
.branches .branch-name{
color: #4183c4;
display: inline-block;
padding: 2px 6px;
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
background-color: rgba(209,227,237,0.5);
border-radius: 3px;
}
 
.branches .branch-meta{
color: #aaa;