added admin page and audit log viewing
This commit is contained in:
@@ -187,13 +187,14 @@ func formatDuration(start, end time.Time) string {
|
||||
}
|
||||
|
||||
templ SlapVersionBadge(version string) {
|
||||
if version == "rebound" {
|
||||
<span class="inline-block bg-green px-3 py-1 rounded-full text-sm font-semibold text-mantle">
|
||||
Rebound
|
||||
</span>
|
||||
} else if version == "slapshot1" {
|
||||
<span class="inline-block bg-red px-3 py-1 rounded-full text-sm font-semibold text-mantle">
|
||||
Slapshot 1
|
||||
</span>
|
||||
switch version {
|
||||
case "rebound":
|
||||
<span class="inline-block bg-green px-3 py-1 rounded-full text-sm font-semibold text-mantle">
|
||||
Rebound
|
||||
</span>
|
||||
case "slapshot1":
|
||||
<span class="inline-block bg-red px-3 py-1 rounded-full text-sm font-semibold text-mantle">
|
||||
Slapshot 1
|
||||
</span>
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user