Skip to content

Commit c4f4f8c

Browse files
committed
web: link to Github in footer, improve IE-compat a bit
1 parent 9de2f05 commit c4f4f8c

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

app/server.go

+9-4
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,9 @@ var tpl = template.Must(template.New("index").Funcs(template.FuncMap{
214214
integrity="sha256-7rF6RaSKyh16288E3hVdzQtHyzatA2MQRGu0cf6pqqM=" crossorigin="anonymous">
215215
<script>
216216
function toggleTimes() {
217-
document.querySelectorAll("tbody time").forEach(el => {
217+
const times = document.querySelectorAll("tbody time")
218+
for (let i = 0, len = times.length; i < len; ++i) {
219+
const el = times[i]
218220
if (!el.dataset.text) {
219221
el.dataset.text = el.innerText
220222
}
@@ -223,7 +225,7 @@ var tpl = template.Must(template.New("index").Funcs(template.FuncMap{
223225
} else {
224226
el.innerText = el.dataset.text
225227
}
226-
})
228+
}
227229
}
228230
229231
document.addEventListener("DOMContentLoaded", () => {
@@ -253,6 +255,9 @@ var tpl = template.Must(template.New("index").Funcs(template.FuncMap{
253255
Toggle times
254256
</button>
255257
Date: {{ fmtTime .Time false }}
258+
<br>
259+
<a href="https://github.com/digineo/zackup">Digineo Zackup</a>
260+
&bull; <a href="https://github.com/digineo/zackup/issues">Issues</a>
256261
</caption>
257262
<thead>
258263
<tr>
@@ -286,13 +291,13 @@ var tpl = template.Must(template.New("index").Funcs(template.FuncMap{
286291
<td class="text-right">{{ fmtTime .SucceededAt true }}</td>
287292
<td><span class="badge badge-secondary">{{ fmtDuration .SuccessDuration }}</span></td>
288293
{{ else }}
289-
<td colspan="2">{{ na }}</td>
294+
<td colspan="2" class="text-center">{{ na }}</td>
290295
{{ end }}
291296
{{ if .FailedAt }}
292297
<td class="text-right">{{ fmtTime .FailedAt true }}</td>
293298
<td><span class="badge badge-secondary">{{ fmtDuration .FailureDuration }}</span></td>
294299
{{ else }}
295-
<td colspan="2">{{ na }}</td>
300+
<td colspan="2" class="text-center">{{ na }}</td>
296301
{{ end }}
297302
<td>
298303
{{ if .ScheduledAt }}

0 commit comments

Comments
 (0)