aboutsummaryrefslogtreecommitdiff
path: root/list.tmpl
blob: 637a5c51c2eb82d13d8869fa4162036d71473307 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<!DOCTYPE html>
<head><title>GNU Taler Dashboard</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
  margin-left:1%;
  margin-right:1%;
  font-family:sans-serif;
  font-stretch:condensed;
  font-size:12pt;
}
h3 { 
 margin: 0em;
 margin-top: 1em;
 color: brown;
 font-size:1.2em;
}
h4 {
  margin: 0;
  margin-top:  0.5em;
  margin-left: 1%;
  font-size:1.1em;
}
h5 {
  margin: 0;
  margin-top: 0.5em;
  margin-left: 2%;
  font-size:1em;
}
details {
  margin-left: 4%;
  margin-right: 4%;
  font-size:1em;
}
pre {
  max-width: 100%;
  overflow: scroll;
  text-overflow: wrap,ellipsis;
}
.small {
	font-size:8pt;
	font-weight: normal;
}
.category {
  padding-left:5px;
  width:62%;
}
.version {
  padding-left:5px;
  width:61%;
}
.features {
  padding-left:5px;
  background: powderblue;
  width:8em;
}
.issues {
  padding-left:5px;
  background: navajowhite;
  width:8em;
}
{{template "severity.tmpl"}}
</style></head>
  <body>
    <h1>GNU Taler Dashboard</h1>
    <h2><a href="/">Table view</a> | List View </h2>
    {{ with .Lasterror }}, Last error: {{ . }} {{end}}
    {{- $top := . }}
    {{- $features := .Features }}
    {{- $issues := .Issues }}
    {{- $versions := .VersionsByDate }}
    {{- $sorter :=  OrderedBy "Severity" "Handler" "Id" -}}
    <!-- p>
    {{- range $top.Tags }}
      <button>{{ . }}</button>
    {{ end -}}
    </p -->
    {{- range $cat := $top.Categories }}
      <h3 class="category">{{ $cat }}</h3>
        {{- range $tar := $top.TargetVersions }}
        {{- with $version := $versions.Get . }}
		{{ $hasentries  := false }}
		{{ $hasfeatures := false }}
		{{ $hasissues   := false }}
		{{ with $features.ByCategoryAndTarget $cat $tar }}
			{{ $hasfeatures = true }}
			{{ $hasentries = true }}
		{{ end }}
		{{ with $issues.ByCategoryAndTarget $cat $tar }}
			{{ $hasissues = true }}
			{{ $hasentries = true }}
		{{ end }}
		{{ if $hasentries }}<h4 class="version">{{ $tar }} <span class="small">({{$version.Timestamp.Format "02 Jan 06"}})</span></h4> {{ end }}
		{{ if $hasfeatures }}
		<h5 class="features">Features</h5>
		{{- range $sorter.Sort ($features.ByCategoryAndTarget $cat $tar) }}
		  <details>
		    <summary>
		      {{ if .IsHandled }}<span title="assigned to {{.Handler.Name}}">🥷</span>{{else}}<span title="unassigned">❓</span>{{end}}
		        <a href="https://bugs.gnunet.org/view.php?id={{.Id}}" target="_blank">{{.Id}}</a>
		        <span class="severity-{{.Severity.Name}}">{{.Summary}}</span><br>
		    </summary>
		    <pre>{{ .Description }}</pre>
		  </details>
		{{ end -}}
		{{ end }}
		{{ if $hasissues }}
	        <h5 class="issues">Issues</h5>
	        {{- range $sorter.Sort ($issues.ByCategoryAndTarget $cat $tar) }}
		<details>
		  <summary>
		    {{ if .IsHandled }}<span title="assigned to {{.Handler.Name}}">🥷</span>{{else}}<span title="unassigned">❓</span>{{end}}
		      <a href="https://bugs.gnunet.org/view.php?id={{.Id}}" target="_blank">{{.Id}}</a>
		      <span class="severity-{{.Severity.Name}}" title="severity {{.Severity.Name}}">{{.Summary}}</span><br>
		  </summary>
		  <pre>{{ .Description }}</pre>
		</details>
	        {{ end -}}
        {{ end -}}
	{{end}}
	{{end}}
    {{ end -}}
    <p>
    Total: {{ len $features }} features and {{ len $issues }} issues.
    <br>Data from {{ .Timestamp.Format "02 Jan 06 15:04 MST"}},
    <br>updated every {{ .Freq }} (no auto-refresh).
    <p>
    <small>taler-dashboard - version: {{.Commit}} - <a href="https://git.kesim.org/taler/taler-dashboard">https://git.kesim.org/taler/taler-dashboard</a> </small>
  </body>
</html>