1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-21 22:29:41 +02:00
documize/core/section/github/summary_template.go
2016-08-26 11:17:52 +01:00

56 lines
1.4 KiB
Go

// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
//
// This software (Documize Community Edition) is licensed under
// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html
//
// You can operate outside the AGPL restrictions by purchasing
// Documize Enterprise Edition and obtaining a commercial license
// by contacting <sales@documize.com>.
//
// https://documize.com
package github
const summaryTemplate = `
<div class="section-github-render">
<h5>
Activity since {{.Config.Since}}{{.Config.DateMessage}} for {{.Config.Owner}} repositories:
{{range $data := .Config.Lists}}
{{if $data.Included}}
<a class="link" href="{{$data.URL}}">
{{$data.Repo}}{{if $data.Comma}},{{end}}
</a>
{{end}}
{{end}}
</h5>
{{if .HasSharedLabels}}
<h3>
Common Labels <br>
</h3>
<table class="label-table" style="width: 100%;">
<thead class="github">
<tr>
<th class="title">Label</th>
<th class="title">Count</th>
<th class="title">Repositories</th>
</tr>
</thead>
<tbody class="github">
{{range $slabel := .SharedLabels}}
<tr>
<td style="width: 15%;">{{$slabel.Name}}</td>
<td style="width: 15%;">{{$slabel.Count}}</td>
<td style="width: 70%;">{{$slabel.Repos}}</td>
</tr>
{{end}}
</tbody>
</table>
{{end}}
</div>
`