Repository navigation
Expand file tree
/
Copy pathconfig_version.go.html
More file actions
40 lines (39 loc) · 1.67 KB
/
Copy pathconfig_version.go.html
File metadata and controls
40 lines (39 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{{/* Copyright (c) ClaceIO, LLC */}}
{{/* SPDX-License-Identifier: Apache-2.0 */}}
{{/* Config history snapshot viewer (/config/history?version=): one dynamic
config version rendered as formatted json */}}
{{ template "page_open" (dict "Ctx" . "Main" "space-y-4 max-w-6xl") }}
<!-- Header -->
<div class="page-header flex items-center gap-2 flex-wrap mb-2 md:mb-6">
{{ template "hamburger" . }}
<div>
{{ template "page_title" "Configuration" }}
<nav aria-label="Breadcrumb" class="breadcrumbs text-xs text-base-content/70 p-0">
<ul>
<li>
<a href="{{ .AppPath }}/config">Configuration</a>
</li>
<li class="font-mono">{{ trunc 20 .Data.Version }}…</li>
</ul></nav>
<h2 class="text-xl font-medium font-mono break-all">
{{ .Data.Version }}
</h2>
<p class="page-desc text-sm text-base-content/70">
Dynamic config snapshot at this version
</p>
</div>
</div>
{{ if .Data.Error }}
{{ template "error_alert" .Data.Error }}
{{ else }}
<div class="card bg-base-100 border border-base-300">
<div class="p-3">
<div
class="mockup-code w-full overflow-y-auto before:sticky before:top-3">
<pre
class="px-5 text-xs leading-relaxed whitespace-pre-wrap"><code>{{ .Data.Json }}</code></pre>
</div>
</div>
</div>
{{ end }}
{{ template "page_close" . }}