fixed bug

This commit is contained in:
BroodjeAap 2022-10-18 20:34:35 +00:00
parent 3731c7aa6d
commit 280f0c59fc
2 changed files with 8 additions and 4 deletions

View file

@ -13,8 +13,13 @@
{{ range . }} {{ range . }}
<tr class="pointer" onclick="window.location='/watch/view/{{ .ID }}'"> <tr class="pointer" onclick="window.location='/watch/view/{{ .ID }}'">
<td class="h3">{{ .Name }}</td> <td class="h3">{{ .Name }}</td>
<td class="h3">{{ .CronEntry.Prev.Format "2006-01-02 15:04:05" }}</td> {{ if .CronEntry }}
<td class="h3">{{ .CronEntry.Next.Format "2006-01-02 15:04:05" }}</td> <td class="h3">{{ .CronEntry.Prev.Format "2006-01-02 15:04:05" }}</td>
<td class="h3">{{ .CronEntry.Next.Format "2006-01-02 15:04:05" }}</td>
{{ else }}
<td class="h3" colspan="2">No schedule (Add cron filter)</td>
{{ end }}
<td> <td>
<a href="/watch/edit/{{ .ID }}" class="btn btn-success">Edit</a> <a href="/watch/edit/{{ .ID }}" class="btn btn-success">Edit</a>
</td> </td>

View file

@ -3,5 +3,4 @@
- condition filters have var1 pointing to other filter? - condition filters have var1 pointing to other filter?
- header/post body for get url ? - header/post body for get url ?
- add toast when editing to replace notify ? - add toast when editing to replace notify ?
- unescape notify string - unescape notify string
- fix bug when no cron job for watch