added no. of issues and features to column header
This commit is contained in:
parent
57285c12c1
commit
dec70c98a8
10
issues.go
10
issues.go
@ -212,6 +212,16 @@ func (i Issues) ByCategory(cat string) (issues Issues) {
|
|||||||
return issues
|
return issues
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (i Issues) ByTarget(tar string) (issues Issues) {
|
||||||
|
for _, is := range i {
|
||||||
|
if is.TargetVersion.Name == tar {
|
||||||
|
issues = append(issues, is)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
sort.Sort(sort.Reverse(ByHandlerAndId(issues)))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
func (i Issues) ByCategoryAndTarget(cat, tar string) (issues Issues) {
|
func (i Issues) ByCategoryAndTarget(cat, tar string) (issues Issues) {
|
||||||
for _, is := range i {
|
for _, is := range i {
|
||||||
if is.TargetVersion.Name == tar &&
|
if is.TargetVersion.Name == tar &&
|
||||||
|
15
table.tmpl
15
table.tmpl
@ -9,11 +9,11 @@ body {
|
|||||||
font-stretch:condensed;
|
font-stretch:condensed;
|
||||||
font-size: 12pt;
|
font-size: 12pt;
|
||||||
}
|
}
|
||||||
table {
|
table {
|
||||||
background: white;
|
background: white;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
}
|
}
|
||||||
th, td {
|
th, td {
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
border: 1px solid #ddd;
|
border: 1px solid #ddd;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
@ -21,9 +21,9 @@ th, td {
|
|||||||
td {
|
td {
|
||||||
min-width: 10em;
|
min-width: 10em;
|
||||||
}
|
}
|
||||||
th.side {
|
th.side {
|
||||||
color: brown;
|
color: brown;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
max-width: 11em;
|
max-width: 11em;
|
||||||
}
|
}
|
||||||
tr:hover {
|
tr:hover {
|
||||||
@ -83,6 +83,7 @@ details[open].issue {
|
|||||||
background: ghostwhite;
|
background: ghostwhite;
|
||||||
border: 4px navajowhite solid;
|
border: 4px navajowhite solid;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style></head>
|
</style></head>
|
||||||
<body>
|
<body>
|
||||||
<h1>GNU Taler Dashboard</h1>
|
<h1>GNU Taler Dashboard</h1>
|
||||||
@ -101,9 +102,12 @@ details[open].issue {
|
|||||||
{{- range $version := $versions }}
|
{{- range $version := $versions }}
|
||||||
<th>
|
<th>
|
||||||
<details class="version">
|
<details class="version">
|
||||||
<summary><b>{{ $version.Name }}</b> <span class="right">({{ $version.Timestamp.Format "02 Jan 06"}})</span></summary>
|
<summary><b>{{ $version.Name }}</b> <span class="right">({{ $version.Timestamp.Format "02 Jan 06"}})</span>
|
||||||
|
</summary>
|
||||||
<div>{{ $version.Description }}</div>
|
<div>{{ $version.Description }}</div>
|
||||||
</details>
|
</details>
|
||||||
|
<div class="right">{{ len ($issues.ByTarget $version.Name) }} issues</div>
|
||||||
|
<div class="right">{{ len ($features.ByTarget $version.Name) }} features</div>
|
||||||
</th>
|
</th>
|
||||||
{{- end}}
|
{{- end}}
|
||||||
</tr>
|
</tr>
|
||||||
@ -111,6 +115,7 @@ details[open].issue {
|
|||||||
<tr>
|
<tr>
|
||||||
<th class="side">{{ . }}</th>
|
<th class="side">{{ . }}</th>
|
||||||
{{- range $version := $versions }}
|
{{- range $version := $versions }}
|
||||||
|
|
||||||
<td><div class="minh">{{ with $features.ByCategoryAndTarget $cat $version.Name }}
|
<td><div class="minh">{{ with $features.ByCategoryAndTarget $cat $version.Name }}
|
||||||
<details class="feature">
|
<details class="feature">
|
||||||
<summary>
|
<summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user