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

updated commits data

This commit is contained in:
EnesAlili 2016-09-05 13:25:15 +01:00
parent 781a31fc09
commit 049ff73825

View file

@ -35,9 +35,23 @@ const commitsTemplate = `
</td> </td>
<td style="width:95%;"> <td style="width:95%;">
<h6>{{$stats.Author}}</h6> has been assigned {{$stats.OpenIssues}} issues, {{$stats.ClosedIssues}} are now closed, has made {{$stats.CommitCount}} commit on 6 branches. <h6>{{$stats.Author}}</h6>
<br> {{if gt $stats.OpenIssues 0}}
{{range $repo := $stats.Repos}} {{$repo}}, {{end}} has been assigned {{$stats.OpenIssues}}
{{if eq 1 $stats.OpenIssues}} issue,
{{else}} issues, {{end}}
{{end}}
{{if gt $stats.ClosedIssues 0}}
{{$stats.ClosedIssues}} have been closed,
{{end}}
{{if gt $stats.CommitCount 0}}
has made {{$stats.CommitCount}}
{{if eq 1 $stats.CommitCount}} commit {{else}} commits {{end}}
on {{len $stats.Repos}} {{if eq 1 (len $stats.Repos)}} branch. {{else}} branches. {{end}}
<br>
{{range $repo := $stats.Repos}} {{$repo}}, {{end}}
{{end}}
</td> </td>
</tr> </tr>