mirror of
https://github.com/documize/community.git
synced 2025-07-22 14:49:42 +02:00
html and css cleanup
This commit is contained in:
parent
b419bd2d52
commit
49748ec81d
6 changed files with 49 additions and 148 deletions
|
@ -101,7 +101,7 @@
|
||||||
progress[value] {
|
progress[value] {
|
||||||
background-color: #eeeeee;
|
background-color: #eeeeee;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
height: 10px;
|
height: 15px;
|
||||||
width: 50%;
|
width: 50%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -143,97 +143,3 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
table.milestone-table td a.link {
|
|
||||||
font-size: 18px;
|
|
||||||
}
|
|
||||||
|
|
||||||
td span.milestone {
|
|
||||||
color: #3c3c3c;
|
|
||||||
font-size: 18px;
|
|
||||||
}
|
|
||||||
|
|
||||||
td span.date-meta {
|
|
||||||
margin-right: 10px;
|
|
||||||
font-size: 14px;
|
|
||||||
color: #767676;
|
|
||||||
}
|
|
||||||
td span.date-meta img {
|
|
||||||
height: 14px;
|
|
||||||
margin-right: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
table.contributor-table {
|
|
||||||
margin-top: 30px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
table.issue-table td a.link {
|
|
||||||
font-size: 18px;
|
|
||||||
}
|
|
||||||
|
|
||||||
td span.milestone {
|
|
||||||
color: #3c3c3c;
|
|
||||||
font-size: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
li.github-commit-item {
|
|
||||||
display: block;
|
|
||||||
width: 95%;
|
|
||||||
font-size: 12px;
|
|
||||||
color: #999;
|
|
||||||
|
|
||||||
> .link {
|
|
||||||
color: #999;
|
|
||||||
|
|
||||||
> .github-avatar {
|
|
||||||
float: left;
|
|
||||||
margin-right: 15px;
|
|
||||||
margin-top: 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
> .issue-avatar {
|
|
||||||
float: left;
|
|
||||||
margin-right: 15px;
|
|
||||||
margin-top: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
> .github-commit-body {
|
|
||||||
margin: 0px;
|
|
||||||
padding: 0px;
|
|
||||||
|
|
||||||
> .github-commit-title {
|
|
||||||
color: #4e575b;
|
|
||||||
text-decoration: none;
|
|
||||||
font-size: 13px;
|
|
||||||
font-weight: 600;
|
|
||||||
line-height: 22px;
|
|
||||||
margin: 0;
|
|
||||||
padding: 0px;
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
width: 90%;
|
|
||||||
|
|
||||||
.label-name {
|
|
||||||
font-size: 16px;
|
|
||||||
margin: 0 10px 0 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
> .github-commit-meta {
|
|
||||||
font-weight: normal;
|
|
||||||
color: #767676;
|
|
||||||
font-size: 14px;
|
|
||||||
margin: 0px;
|
|
||||||
padding: 0px;
|
|
||||||
width: 90%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
|
|
||||||
h1
|
h1
|
||||||
{
|
{
|
||||||
font-size: 2.3em;
|
font-size: 2em;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color:$color-off-black;
|
color:$color-off-black;
|
||||||
margin: 30px 0 20px 0;
|
margin: 30px 0 20px 0;
|
||||||
|
|
|
@ -13,10 +13,9 @@ package github
|
||||||
|
|
||||||
const commitsTemplate = `
|
const commitsTemplate = `
|
||||||
<div class="section-github-render">
|
<div class="section-github-render">
|
||||||
|
|
||||||
{{if .HasAuthorStats}}
|
{{if .HasAuthorStats}}
|
||||||
|
|
||||||
<h3>Contributors</h3>
|
<h3>Contributors</h3>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
There
|
There
|
||||||
{{if eq 1 (len .AuthorStats)}}is{{else}}are{{end}}
|
{{if eq 1 (len .AuthorStats)}}is{{else}}are{{end}}
|
||||||
|
@ -25,8 +24,8 @@ const commitsTemplate = `
|
||||||
across {{.RepoCount}}
|
across {{.RepoCount}}
|
||||||
{{if eq 1 .RepoCount}} repository. {{else}} repositories. {{end}}
|
{{if eq 1 .RepoCount}} repository. {{else}} repositories. {{end}}
|
||||||
</p>
|
</p>
|
||||||
<table class="contributor-table" style="width:100%;">
|
|
||||||
|
|
||||||
|
<table class="contributor-table" style="width:100%;">
|
||||||
<tbody class="github">
|
<tbody class="github">
|
||||||
{{range $stats := .AuthorStats}}
|
{{range $stats := .AuthorStats}}
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -62,31 +61,31 @@ const commitsTemplate = `
|
||||||
|
|
||||||
{{if .HasCommits}}
|
{{if .HasCommits}}
|
||||||
<h3>Commits</h3>
|
<h3>Commits</h3>
|
||||||
<p>There are 24 commits by 3 contributors across 6 repositories.</p>
|
<p> There are {{len .BranchCommits}} commits by {{len .AuthorStats}} contributors
|
||||||
|
across {{.RepoCount}}
|
||||||
|
{{if eq 1 .RepoCount}} repository. {{else}} repositories. {{end}}
|
||||||
|
</p>
|
||||||
<table class="contributor-table" style="width:100%;">
|
<table class="contributor-table" style="width:100%;">
|
||||||
|
|
||||||
<tbody class="github">
|
<tbody class="github">
|
||||||
{{range $commit := .BranchCommits}}
|
{{range $commit := .BranchCommits}}
|
||||||
<tr>
|
<tr>
|
||||||
<td style="width:5%;">
|
<td style="width:5%;">
|
||||||
<img class="github-avatar" alt="@{{$commit.Name}}" src="{{$commit.Avatar}}" height="36" width="36">
|
<img class="github-avatar" alt="@{{$commit.Name}}" src="{{$commit.Avatar}}" height="36" width="36">
|
||||||
</td>
|
</td>
|
||||||
<td style="width:20%;">
|
<td style="width:45%;">
|
||||||
{{if $commit.ShowUser}}
|
{{if $commit.ShowUser}}
|
||||||
<h6>{{$commit.Name}}</h6>
|
<h6>{{$commit.Name}}</h6>
|
||||||
{{end}}
|
{{end}}
|
||||||
</td>
|
|
||||||
<td style="width:40%;">
|
|
||||||
<a class="link" href="{{$commit.URL}}">{{$commit.Message}}</a><br>
|
<a class="link" href="{{$commit.URL}}">{{$commit.Message}}</a><br>
|
||||||
<span class="date-meta">{{if $commit.ShowDate}}{{$commit.Date}}{{end}}</span>
|
<span class="date-meta">{{if $commit.ShowDate}}{{$commit.Date}}{{end}}</span>
|
||||||
</td>
|
</td>
|
||||||
<td style="width:30%;">{{if $commit.ShowBranch}}{{$commit.Repo}}:<span class="branch">{{$commit.Branch}}</span>{{end}}</td>
|
<td style="width:55%;">
|
||||||
|
{{if $commit.ShowBranch}}{{$commit.Repo}}:<span class="branch">{{$commit.Branch}}</span>{{end}}
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{{end}}
|
{{end}}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -18,7 +18,7 @@ const (
|
||||||
<path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path>
|
<path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path>
|
||||||
</svg>
|
</svg>
|
||||||
</span>
|
</span>
|
||||||
`
|
`
|
||||||
closedIsvg = `
|
closedIsvg = `
|
||||||
<span title="Closed issue">
|
<span title="Closed issue">
|
||||||
<svg height="16" version="1.1" viewBox="0 0 16 16" width="16" class="color:#bd2c00;">
|
<svg height="16" version="1.1" viewBox="0 0 16 16" width="16" class="color:#bd2c00;">
|
||||||
|
@ -50,8 +50,6 @@ const (
|
||||||
</p>
|
</p>
|
||||||
<div class="github-board">
|
<div class="github-board">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<table class="issue-table" style="width: 100%;">
|
<table class="issue-table" style="width: 100%;">
|
||||||
<tbody class="github">
|
<tbody class="github">
|
||||||
{{range $data := .Issues}}
|
{{range $data := .Issues}}
|
||||||
|
|
|
@ -14,22 +14,22 @@ package github
|
||||||
const (
|
const (
|
||||||
rawMSsvg = `<path d="M8 2H6V0h2v2zm4 5H2c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h10l2 2-2 2zM8 4H6v2h2V4zM6 16h2V8H6v8z"></path>`
|
rawMSsvg = `<path d="M8 2H6V0h2v2zm4 5H2c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h10l2 2-2 2zM8 4H6v2h2V4zM6 16h2V8H6v8z"></path>`
|
||||||
openMSsvg = `
|
openMSsvg = `
|
||||||
<span title="Open milestone">
|
<span title="Open milestone">
|
||||||
<svg height="16" width="14" version="1.1" viewBox="0 0 14 16">
|
<svg height="16" width="14" version="1.1" viewBox="0 0 14 16">
|
||||||
` + rawMSsvg + `
|
` + rawMSsvg + `
|
||||||
</svg>
|
</svg>
|
||||||
</span>
|
</span>
|
||||||
`
|
`
|
||||||
closedMSsvg = `
|
closedMSsvg = `
|
||||||
<span title="Closed milestone">
|
<span title="Closed milestone">
|
||||||
<svg aria-hidden="true" class="octicon octicon-check" height="16" version="1.1" viewBox="0 0 12 16" width="12">
|
<svg aria-hidden="true" class="octicon octicon-check" height="16" version="1.1" viewBox="0 0 12 16" width="12">
|
||||||
<path d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"></path>
|
<path d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"></path>
|
||||||
</svg>
|
</svg>
|
||||||
</span>
|
</span>
|
||||||
`
|
`
|
||||||
milestonesTemplate = `
|
milestonesTemplate = `
|
||||||
<div class="section-github-render">
|
|
||||||
|
|
||||||
|
<div class="section-github-render">
|
||||||
{{if .HasMilestones}}
|
{{if .HasMilestones}}
|
||||||
<h3>Milestones</h3>
|
<h3>Milestones</h3>
|
||||||
<p>
|
<p>
|
||||||
|
|
|
@ -45,7 +45,5 @@ const summaryTemplate = `
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue