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

add extra accumulations for proposed github sections

This commit is contained in:
Elliott Stoneham 2016-08-17 15:12:09 +01:00
parent 6f0d503cb5
commit 20f77f359e
7 changed files with 692 additions and 641 deletions

View file

@ -34,49 +34,23 @@ func (s branchesToSort) Less(i, j int) bool {
func init() {
reports[tagSummaryData] = report{refreshSummary, renderSummary, `
<div class="section-github-render">
<h3>Summary</h3>
<div class="github-board">
For repository branches:
<ul>
{{range $data := .Config.Lists}}
{{if $data.Included}}
<li>
<a class="link" href="{{$data.URL}}">
{{$data.Owner}}/{{$data.Repo}}:{{$data.Name}}
</a>
</li>
{{end}}
<h3>
Activity since {{.Config.Since}}{{.Config.DateMessage}} for repository branches [
{{range $data := .Config.Lists}}
{{if $data.Included}}
<a class="link" href="{{$data.URL}}">
{{$data.Owner}}/{{$data.Repo}}:{{$data.Name}}
</a>
{{end}}
</ul>
<table style="width:80%">
<tr>
<th></th>
<th colspan=2>Closed since {{.Config.Since}}{{.Config.DateMessage}}</th>
<th colspan=2>Still Open</th>
  </tr>
<tr>
<td>Milestones</td>
<th width=20>` + closedMSsvg + `</td>
<td>{{.ClosedMS}}</td>
<td width=20>` + openMSsvg + `</td>
<td>{{.OpenMS}}</td>
</tr>
<tr>
<td>Issues</td>
<td>` + closedIsvg + `</td>
<td>{{.ClosedIssues}}</td>
<td>` + openIsvg + `</td>
<td>{{.OpenIssues}}</td>
</tr>
<tr>
<td>Pull requests</td>
<td>` + closedPRsvg + `</td>
<td>{{.ClosedPRs}}</td>
<td>` + openPRsvg + `</td>
<td>{{.OpenPRs}}</td>
</tr>
</table>
</div>
{{end}}
]
</h3>
<h3>
Shared Tags:
{{range $slabel := .SharedLabels}}
{{$slabel}}
{{end}}
</h3>
</div>
`}
}