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

@ -26,7 +26,7 @@
<div style="padding: 10px 0; margin-bottom: 20px">
<div style="text-align: center; color:darkgrey">
Registry UI v{{version}} | <a href="https://quiq.com" target="_blank">Quiq Inc.</a>
Registry UI v{{version}} | <a href="https://quiq.com" target="_blank">Quiq Inc.</a> | <a href="https://github.com/Quiq/registry-ui" target="_blank">Github</a>
</div>
</div>
</div>

View File

@ -89,7 +89,7 @@
{{end}} {* end tags *}
{{if eventsAllowed and isset(events) }}
<h4>Latest activity</h4>
<h4>Recent Activity</h4>
<table id="datatable_events" class="table table-striped table-bordered">
<thead bgcolor="#ddd">
<tr>
@ -104,7 +104,7 @@
{{range _, e := events}}
<tr>
<td>{{ e.Action }}</td>
{{if hasPrefix(e.Tag,"sha256") }}
{{if hasPrefix(e.Tag,"sha256:") }}
<td title="{{ e.Tag }}">{{ e.Repository }}@{{ e.Tag[:19] }}...</td>
{{else}}
<td>{{ e.Repository }}:{{ e.Tag }}</td>

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>