mirror of
https://github.com/documize/community.git
synced 2025-07-23 15:19: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
|
@ -13,10 +13,9 @@ package github
|
|||
|
||||
const commitsTemplate = `
|
||||
<div class="section-github-render">
|
||||
|
||||
{{if .HasAuthorStats}}
|
||||
|
||||
<h3>Contributors</h3>
|
||||
|
||||
<p>
|
||||
There
|
||||
{{if eq 1 (len .AuthorStats)}}is{{else}}are{{end}}
|
||||
|
@ -25,8 +24,8 @@ const commitsTemplate = `
|
|||
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">
|
||||
{{range $stats := .AuthorStats}}
|
||||
<tr>
|
||||
|
@ -62,31 +61,31 @@ const commitsTemplate = `
|
|||
|
||||
{{if .HasCommits}}
|
||||
<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%;">
|
||||
|
||||
<tbody class="github">
|
||||
{{range $commit := .BranchCommits}}
|
||||
<tr>
|
||||
<td style="width:5%;">
|
||||
<img class="github-avatar" alt="@{{$commit.Name}}" src="{{$commit.Avatar}}" height="36" width="36">
|
||||
</td>
|
||||
<td style="width:20%;">
|
||||
{{if $commit.ShowUser}}
|
||||
<h6>{{$commit.Name}}</h6>
|
||||
{{end}}
|
||||
<td style="width:5%;">
|
||||
<img class="github-avatar" alt="@{{$commit.Name}}" src="{{$commit.Avatar}}" height="36" width="36">
|
||||
</td>
|
||||
<td style="width:40%;">
|
||||
<td style="width:45%;">
|
||||
{{if $commit.ShowUser}}
|
||||
<h6>{{$commit.Name}}</h6>
|
||||
{{end}}
|
||||
<a class="link" href="{{$commit.URL}}">{{$commit.Message}}</a><br>
|
||||
<span class="date-meta">{{if $commit.ShowDate}}{{$commit.Date}}{{end}}</span>
|
||||
</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>
|
||||
{{end}}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{{end}}
|
||||
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue