1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-23 23:29:42 +02:00

github for single repos only, with selectable sub-sections

This commit is contained in:
Elliott Stoneham 2016-09-28 14:42:55 +01:00
parent 7bf9901c9a
commit 6e362c0eac
10 changed files with 104 additions and 28 deletions

View file

@ -13,6 +13,7 @@ package github
const commitsTemplate = `
<div class="section-github-render">
<!--
{{if .HasAuthorStats}}
<div class="heading">Contributors</div>
<p>
@ -58,12 +59,13 @@ const commitsTemplate = `
</tbody>
</table>
{{end}}
-->
{{if .HasCommits}}
<div class="heading">Commits</div>
<p>There are {{len .BranchCommits}} commits by {{.NumContributors}} contributors across {{.RepoCount}}
<!-- <p>There are {{len .BranchCommits}} commits by {{.NumContributors}} contributors across {{.RepoCount}}
{{if eq 1 .RepoCount}} repository. {{else}} repositories. {{end}}
</p>
</p> -->
<div class="margin-top-20"></div>
<table class="github-table">
<tbody>