Make image column clickable in Event Log

This commit is contained in:
Roman Vynar
2024-04-19 18:06:28 +03:00
parent e334d4c6c7
commit d29c24a78f
3 changed files with 6 additions and 6 deletions

View File

@@ -72,10 +72,10 @@
{{range _, e := events}}
<tr>
<td>{{ e.Action }}</td>
{{if hasPrefix(e.Tag,"sha256") }}
<td title="{{ e.Tag }}">{{ e.Repository }}@{{ e.Tag[:19] }}...</td>
{{if hasPrefix(e.Tag,"sha256:") }}
<td title="{{ e.Tag }}"><a href="{{ basePath }}/{{ e.Repository }}@{{ e.Tag }}">{{ e.Repository }}@{{ e.Tag[:19] }}...</a></td>
{{else}}
<td>{{ e.Repository }}:{{ e.Tag }}</td>
<td><a href="{{ basePath }}/{{ e.Repository }}:{{ e.Tag }}">{{ e.Repository }}:{{ e.Tag }}</a></td>
{{end}}
<td>{{ e.IP }}</td>
<td>{{ e.User }}</td>