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

New github design changes

This commit is contained in:
EnesAlili 2016-08-24 11:40:56 +01:00
parent b42fc1f84d
commit cf007f8006
4 changed files with 148 additions and 79 deletions

View file

@ -13,6 +13,7 @@ package github
const summaryTemplate = `
<div class="section-github-render">
<h3>
Activity since {{.Config.Since}}{{.Config.DateMessage}} for {{.Config.Owner}} repositories:
{{range $data := .Config.Lists}}
@ -23,11 +24,33 @@ const summaryTemplate = `
{{end}}
{{end}}
</h3>
<h3>
Common Labels: <br>
{{range $slabel := .SharedLabels}}
{{$slabel.Name}} {{$slabel.Count}} {{$slabel.Repos}} <br>
{{end}}
</h3>
{{if .HasSharedLabels}}
<h3>
Common Labels: <br>
</h3>
<table class="label-table" style="width: 100%;">
<thead>
<tr>
<th class="title">Label</th>
<th class="title">Count</th>
<th class="title">Repositories</th>
</tr>
</thead>
<tbody>
{{range $slabel := .SharedLabels}}
<tr>
<td style="width: 25%;">{{$slabel.Name}}</td>
<td style="width: 25%;">{{$slabel.Count}}</td>
<td style="width: 50%;">{{$slabel.Repos}}</td>
</tr>
{{end}}
</tbody>
</table>
{{end}}
</div>
`