mirror of
https://github.com/documize/community.git
synced 2025-07-24 07:39:43 +02:00
New GitHub wip
This commit is contained in:
parent
cbbfd8f381
commit
48dbc0b196
7 changed files with 109 additions and 112 deletions
|
@ -25,8 +25,15 @@ const commitsTemplate = `
|
|||
{{if eq 1 .RepoCount}} repository. {{else}} repositories. {{end}}
|
||||
</p>
|
||||
|
||||
<div class="margin-top-20"></div>
|
||||
<table class="github-table">
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="title">Contributors</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{{range $stats := .AuthorStats}}
|
||||
<tr>
|
||||
|
@ -52,7 +59,6 @@ const commitsTemplate = `
|
|||
{{range $repo := $stats.Repos}} · {{$repo}} {{end}}
|
||||
{{end}}
|
||||
</div>
|
||||
<div class="margin-top-10"></div>
|
||||
</td>
|
||||
</tr>
|
||||
{{end}}
|
||||
|
@ -62,26 +68,27 @@ const commitsTemplate = `
|
|||
-->
|
||||
|
||||
{{if .HasCommits}}
|
||||
<div class="heading">Commits</div>
|
||||
<!-- <p>There are {{len .BranchCommits}} commits by {{.NumContributors}} contributors across {{.RepoCount}}
|
||||
{{if eq 1 .RepoCount}} repository. {{else}} repositories. {{end}}
|
||||
</p> -->
|
||||
<div class="margin-top-20"></div>
|
||||
<table class="github-table">
|
||||
<table class="github-table" style="width: 100%;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="title">Commits <span>{{len .BranchCommits}} commits by {{.NumContributors}} contributors</span>
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{range $commit := .BranchCommits}}
|
||||
<tr>
|
||||
<td style="no-width">
|
||||
<img class="github-avatar" alt="@{{$commit.Name}}" src="{{$commit.Avatar}}" />
|
||||
<a href="{{$commit.URL}}">{{$commit.Message}}</a>
|
||||
</td>
|
||||
<td>
|
||||
<div class="contributor-name"><a href="{{$commit.URL}}">{{$commit.Message}}</a></div>
|
||||
<td style="text-align:right;">
|
||||
<div class="contributor-meta">
|
||||
<img class="github-avatar" alt="@{{$commit.Name}}" src="{{$commit.Avatar}}" />
|
||||
{{$commit.Name}}
|
||||
{{if $commit.ShowDate}} · {{$commit.Date}} {{end}}
|
||||
{{if $commit.ShowBranch}} · {{$commit.Repo}}:<span class="bold">{{$commit.Branch}}</span>{{end}}
|
||||
</div>
|
||||
<div class="margin-top-10"></div>
|
||||
</td>
|
||||
</tr>
|
||||
{{end}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue