mirror of
https://github.com/documize/community.git
synced 2025-07-23 15:19:42 +02:00
More github design updates
This commit is contained in:
parent
6d5cc420d7
commit
cf6410cfe8
5 changed files with 90 additions and 45 deletions
|
@ -16,7 +16,7 @@ const commitsTemplate = `
|
|||
|
||||
{{if .HasAuthorStats}}
|
||||
|
||||
<h3>Contributor activity since {{.Config.Since}}{{.Config.DateMessage}}</h3>
|
||||
<h3>Contributor activity</h3>
|
||||
<table class="contributor-table" style="width: 100%;">
|
||||
<thead class="github">
|
||||
<tr>
|
||||
|
@ -50,24 +50,21 @@ const commitsTemplate = `
|
|||
{{end}}
|
||||
|
||||
{{if .HasCommits}}
|
||||
<h3>Commits activity since {{.Config.Since}}{{.Config.DateMessage}}</h3>
|
||||
<h3>Commits activity</h3>
|
||||
|
||||
<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>
|
||||
<th class="title">Commits / Date</th>
|
||||
<th class="title">Repository:Branch</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody class="github">
|
||||
{{range $commit := .BranchCommits}}
|
||||
<tr>
|
||||
<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%;">
|
||||
<td style="width: 20%;">
|
||||
{{if $commit.ShowUser}}
|
||||
<div class="github-avatar">
|
||||
<img alt="@{{$commit.Name}}" src="{{$commit.Avatar}}" height="36" width="36">
|
||||
|
@ -75,7 +72,11 @@ const commitsTemplate = `
|
|||
{{$commit.Name}}
|
||||
{{end}}
|
||||
</td>
|
||||
<td style="width: 50%;"><a class="link" href="{{$commit.URL}}">{{$commit.Message}}</td>
|
||||
<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>
|
||||
</tr>
|
||||
{{end}}
|
||||
</tbody>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue