1
0
Fork 0
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:
EnesAlili 2016-09-29 14:20:43 +01:00
parent cbbfd8f381
commit 48dbc0b196
7 changed files with 109 additions and 112 deletions

View file

@ -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}} &middot; {{$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}} &middot; {{$commit.Date}} {{end}}
{{if $commit.ShowBranch}} &middot; {{$commit.Repo}}:<span class="bold">{{$commit.Branch}}</span>{{end}}
</div>
<div class="margin-top-10"></div>
</td>
</tr>
{{end}}