mirror of
https://github.com/documize/community.git
synced 2025-07-23 07:09:43 +02:00
Put in correct Github sub-section summary figures
This commit is contained in:
parent
d50aa23f34
commit
e737d278b9
6 changed files with 54 additions and 24 deletions
|
@ -32,17 +32,27 @@ const (
|
|||
|
||||
{{if .HasMilestones}}
|
||||
<h3>Milestones</h3>
|
||||
<p>There is {{.ClosedMS}} milestone closed and {{.OpenMS}} milestone open across #number repositories.</p>
|
||||
<p>
|
||||
There are
|
||||
{{.ClosedMS}}
|
||||
{{if eq 1 .ClosedMS}} milestone {{else}} milestones {{end}}
|
||||
closed and {{.OpenMS}}
|
||||
{{if eq 1 .OpenMS}} milestone {{else}} milestones {{end}}
|
||||
open across {{.RepoCount}}
|
||||
{{if eq 1 .RepoCount}} repository. {{else}} repositories. {{end}}
|
||||
</p>
|
||||
<div class="github-board">
|
||||
<table class="milestone-table" style="width: 100%;">
|
||||
<tbody class="github">
|
||||
{{range $data := .Milestones}}
|
||||
<tr>
|
||||
<td style="width: 5%;">
|
||||
{{if $data.IsOpen}}
|
||||
` + openMSsvg + `
|
||||
{{else}}
|
||||
` + closedMSsvg + `
|
||||
{{if $data.IsMilestone}}
|
||||
{{if $data.IsOpen}}
|
||||
` + openMSsvg + `
|
||||
{{else}}
|
||||
` + closedMSsvg + `
|
||||
{{end}}
|
||||
{{end}}
|
||||
</td>
|
||||
<td style="width: 35%;">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue