mirror of
https://github.com/documize/community.git
synced 2025-07-23 15:19:42 +02:00
Updated GitHub design. Still work in progress.
This commit is contained in:
parent
288cfdbb59
commit
0a70bac5e6
7 changed files with 825 additions and 602 deletions
|
@ -18,7 +18,7 @@ const commitsTemplate = `
|
|||
|
||||
<h3>Contributor activity since {{.Config.Since}}{{.Config.DateMessage}}</h3>
|
||||
<table class="contributor-table" style="width: 100%;">
|
||||
<thead>
|
||||
<thead class="github">
|
||||
<tr>
|
||||
<th class="title">Contributor</th>
|
||||
<th class="title">Assigned/Closed</th>
|
||||
|
@ -27,7 +27,7 @@ const commitsTemplate = `
|
|||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tbody class="github">
|
||||
{{range $stats := .AuthorStats}}
|
||||
<tr>
|
||||
<td style="width: 20%;">
|
||||
|
@ -49,31 +49,38 @@ const commitsTemplate = `
|
|||
</table>
|
||||
{{end}}
|
||||
|
||||
{{if .HasCommits}}
|
||||
{{if .HasCommits}}
|
||||
<h3>Commits activity since {{.Config.Since}}{{.Config.DateMessage}}</h3>
|
||||
<table>
|
||||
|
||||
<table class="contributor-table" style="width: 100%;">
|
||||
<thead class="github">
|
||||
<tr>
|
||||
<th class="title">Repository:Branch</th>
|
||||
<th class="title">Date</th>
|
||||
<th class="title">Contributor</th>
|
||||
<th class="title">Commits</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody class="github">
|
||||
{{range $commit := .BranchCommits}}
|
||||
<tr>
|
||||
<td>
|
||||
{{if $commit.ShowRepo}}{{$commit.Repo}}{{end}}
|
||||
</td>
|
||||
<td>
|
||||
{{if $commit.ShowBranch}}{{$commit.Branch}}{{end}}
|
||||
</td>
|
||||
<td>
|
||||
{{if $commit.ShowDate}}{{$commit.Date}}{{end}}
|
||||
</td>
|
||||
<td>
|
||||
<td style="width: 20%;">{{if $commit.ShowBranch}}{{$commit.Repo}}:{{$commit.Branch}}{{end}}</td>
|
||||
<td style="width: 15%;">{{if $commit.ShowDate}}{{$commit.Date}}{{end}}</td>
|
||||
<td style="width: 15%;">
|
||||
{{if $commit.ShowUser}}
|
||||
<img alt="@{{$commit.Name}}" src="{{$commit.Avatar}}" height="36" width="36"> {{$commit.Name}}
|
||||
<div class="github-avatar">
|
||||
<img alt="@{{$commit.Name}}" src="{{$commit.Avatar}}" height="36" width="36">
|
||||
</div>
|
||||
{{$commit.Name}}
|
||||
{{end}}
|
||||
</td>
|
||||
<td>
|
||||
<a class="link" href="{{$commit.URL}}">{{$commit.Message}}</a>
|
||||
</td>
|
||||
<td style="width: 50%;"><a class="link" href="{{$commit.URL}}">{{$commit.Message}}</td>
|
||||
</tr>
|
||||
{{end}}
|
||||
</table>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{{end}}
|
||||
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue