aboutsummaryrefslogtreecommitdiff
path: root/table.tmpl
diff options
context:
space:
mode:
authorÖzgür Kesim <oec@codeblau.de>2023-12-27 03:16:48 +0100
committerÖzgür Kesim <oec@codeblau.de>2023-12-27 03:16:48 +0100
commitc8df59722c75f298eaebe64288146482e607594d (patch)
tree4f5127d920db9b4ace8c2e7cdbead67e344c543a /table.tmpl
parent1b14856bba10bb16fa34cab02b4ddebf7ea886f0 (diff)
update README et al.
Diffstat (limited to 'table.tmpl')
-rw-r--r--table.tmpl97
1 files changed, 97 insertions, 0 deletions
diff --git a/table.tmpl b/table.tmpl
new file mode 100644
index 0000000..cc715fb
--- /dev/null
+++ b/table.tmpl
@@ -0,0 +1,97 @@
+
+<html>
+ <head><title>GNU Taler Dashboard</title></head>
+<style>
+body {
+ margin-left:1%;
+ margin-right:1%;
+ font-family:sans-serif;
+}
+table {
+ background: white;
+ border-collapse: collapse;
+}
+th, td {
+ padding: 8px;
+ border-bottom: 1px solid #ddd;
+ border-right: 1px solid #ddd;
+}
+td {
+ min-width: 10em;
+}
+th.side {
+ color: brown;
+ text-align: right;
+}
+tr:hover {
+ background: #efe;
+}
+.normal {
+ font-weight: normal;
+}
+.data {
+ background: #cde;
+ border-radius: 5px;
+ padding: 8px;
+}
+details {
+ max-width: 30em;
+ overflow-x: auto;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+}
+.over {
+ white-space: nowrap;
+ text-overflow: ellipsis;
+}
+</style>
+ <body>
+ <h1>GNU Taler Dashboard</h1>
+ <a href="/list">List view</a>
+ <h2>Table View</h2>
+ Data from {{ .Timestamp.Format "02 Jan 06 15:04 MST"}}
+ {{ with .Lasterror }}, Last error: {{ . }} {{end}}
+
+ {{ $issues := .Issues }}
+ <p>
+ {{ range $issues.Tags }}
+ <button>{{ . }}</button>
+ {{ end }}
+ </p>
+
+ <table>
+ <tr>
+ <th class="side"></th>
+ {{ range $issues.TargetVersions }}
+ <th>
+ <details>
+ <summary>{{ . }}</summary>
+ <div class="normal">
+ TODO: more
+ </div>
+ </details>
+ </th>
+ {{ end }}
+ </tr>
+ {{ range $cat := $issues.Categories }}
+ <tr>
+ <th class="side">{{ . }}</th>
+ {{ range $tar := $issues.TargetVersions }}
+ <td>
+ {{ with $issues.ByCategoryAndTarget $cat $tar }}
+ <details class="data">
+ <summary>{{ $l := len .}} {{ if lt 1 $l }} {{ $l }} issues {{ else }} 1 issue {{ end }} </summary>
+ {{ range . }}
+ <a href="https://bugs.gnunet.org/view.php?id={{.Id}}" target="_blank">{{.Id}}</a> {{.Summary}}<br>
+ {{ end }}
+ </details>
+ {{ end }}
+ </td>
+ {{ end }}
+ </tr>
+ {{ end }}
+ </table>
+
+ <i>end of dashboard</i>
+ </body>
+</html>