mirror of
https://github.com/documize/community.git
synced 2025-07-23 15:19:42 +02:00
github html and css cleanup. wip
This commit is contained in:
parent
b652bc53f1
commit
781a31fc09
5 changed files with 88 additions and 75 deletions
|
@ -18,24 +18,24 @@ const commitsTemplate = `
|
|||
|
||||
<h3>Contributors</h3>
|
||||
<p>
|
||||
There
|
||||
There
|
||||
{{if eq 1 (len .AuthorStats)}}is{{else}}are{{end}}
|
||||
{{len .AuthorStats}}
|
||||
{{if eq 1 (len .AuthorStats)}}contributor{{else}}contributors{{end}}
|
||||
across {{.RepoCount}}
|
||||
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>
|
||||
<td style="width: 5%;">
|
||||
<img alt="@{{$stats.Author}}" src="{{$stats.Avatar}}" height="36" width="36">
|
||||
<td style="width:5%;">
|
||||
<img class="github-avatar" alt="@{{$stats.Author}}" src="{{$stats.Avatar}}" height="36" width="36">
|
||||
</td>
|
||||
|
||||
<td style="width:50%;">
|
||||
{{$stats.Author}} has been assigned {{$stats.OpenIssues}} issues, {{$stats.ClosedIssues}} are now closed, has made {{$stats.CommitCount}} commit on 6 branches.
|
||||
<td style="width:95%;">
|
||||
<h6>{{$stats.Author}}</h6> has been assigned {{$stats.OpenIssues}} issues, {{$stats.ClosedIssues}} are now closed, has made {{$stats.CommitCount}} commit on 6 branches.
|
||||
<br>
|
||||
{{range $repo := $stats.Repos}} {{$repo}}, {{end}}
|
||||
</td>
|
||||
|
@ -48,32 +48,26 @@ const commitsTemplate = `
|
|||
|
||||
{{if .HasCommits}}
|
||||
<h3>Commits</h3>
|
||||
<p>There are 24 commits by 3 contributors across 6 repositories.</p>
|
||||
|
||||
<table class="contributor-table" style="width: 100%;">
|
||||
<thead class="github">
|
||||
<tr>
|
||||
<th class="title">Contributor</th>
|
||||
<th class="title">Commits / Date</th>
|
||||
<th class="title">Repository:Branch</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<table class="contributor-table" style="width:100%;">
|
||||
|
||||
<tbody class="github">
|
||||
{{range $commit := .BranchCommits}}
|
||||
<tr>
|
||||
<td style="width: 20%;">
|
||||
<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}}
|
||||
<div class="github-avatar">
|
||||
<img alt="@{{$commit.Name}}" src="{{$commit.Avatar}}" height="36" width="36">
|
||||
</div>
|
||||
{{$commit.Name}}
|
||||
<h6>{{$commit.Name}}</h6>
|
||||
{{end}}
|
||||
</td>
|
||||
<td style="width: 40%;">
|
||||
<td style="width:40%;">
|
||||
<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}}:{{$commit.Branch}}{{end}}</td>
|
||||
<td style="width:30%;">{{if $commit.ShowBranch}}{{$commit.Repo}}:<span class="branch">{{$commit.Branch}}</span>{{end}}</td>
|
||||
</tr>
|
||||
{{end}}
|
||||
</tbody>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue