Skip to content

Commit

Permalink
web: link to Github in footer, improve IE-compat a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
dmke committed Apr 26, 2019
1 parent 9de2f05 commit c4f4f8c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions app/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,9 @@ var tpl = template.Must(template.New("index").Funcs(template.FuncMap{
integrity="sha256-7rF6RaSKyh16288E3hVdzQtHyzatA2MQRGu0cf6pqqM=" crossorigin="anonymous">
<script>
function toggleTimes() {
document.querySelectorAll("tbody time").forEach(el => {
const times = document.querySelectorAll("tbody time")
for (let i = 0, len = times.length; i < len; ++i) {
const el = times[i]
if (!el.dataset.text) {
el.dataset.text = el.innerText
}
Expand All @@ -223,7 +225,7 @@ var tpl = template.Must(template.New("index").Funcs(template.FuncMap{
} else {
el.innerText = el.dataset.text
}
})
}
}
document.addEventListener("DOMContentLoaded", () => {
Expand Down Expand Up @@ -253,6 +255,9 @@ var tpl = template.Must(template.New("index").Funcs(template.FuncMap{
Toggle times
</button>
Date: {{ fmtTime .Time false }}
<br>
<a href="https://github.com/digineo/zackup">Digineo Zackup</a>
&bull; <a href="https://github.com/digineo/zackup/issues">Issues</a>
</caption>
<thead>
<tr>
Expand Down Expand Up @@ -286,13 +291,13 @@ var tpl = template.Must(template.New("index").Funcs(template.FuncMap{
<td class="text-right">{{ fmtTime .SucceededAt true }}</td>
<td><span class="badge badge-secondary">{{ fmtDuration .SuccessDuration }}</span></td>
{{ else }}
<td colspan="2">{{ na }}</td>
<td colspan="2" class="text-center">{{ na }}</td>
{{ end }}
{{ if .FailedAt }}
<td class="text-right">{{ fmtTime .FailedAt true }}</td>
<td><span class="badge badge-secondary">{{ fmtDuration .FailureDuration }}</span></td>
{{ else }}
<td colspan="2">{{ na }}</td>
<td colspan="2" class="text-center">{{ na }}</td>
{{ end }}
<td>
{{ if .ScheduledAt }}
Expand Down

0 comments on commit c4f4f8c

Please sign in to comment.