19 lines
1.1 KiB
HTML
19 lines
1.1 KiB
HTML
{{define "content"}}
|
|
{{with .Data}}
|
|
{{if .Rows}}
|
|
<p>The saved settings differ from the confirmed (running) ones: red lines go away, green lines are new.
|
|
Nothing is applied until you press Apply.</p>
|
|
{{with .TokenEdit}}<p class="error">{{.}}</p>{{end}}
|
|
<div class="diff" role="table" aria-label="Changes">
|
|
{{range .Rows}}{{if eq .Class "gap"}}<div class="drow gap" role="row"><span class="gaptext">…</span></div>{{else}}<div class="drow {{.Class}}" role="row"><span class="ln" role="cell">{{if .Old}}{{.Old}}{{end}}</span><span class="ln" role="cell">{{if .New}}{{.New}}{{end}}</span><span class="mk" role="cell">{{.Mark}}</span><code role="cell">{{.Text}}</code></div>{{end}}{{end}}
|
|
</div>
|
|
<div class="actions">
|
|
<form method="post" action="/apply"><input type="hidden" name="csrf" value="{{$.CSRF}}"><button>Apply</button></form>
|
|
<form method="post" action="/discard"><input type="hidden" name="csrf" value="{{$.CSRF}}"><button class="secondary">Discard changes</button></form>
|
|
</div>
|
|
{{else}}
|
|
<p>No changes: the saved settings are the confirmed ones.</p>
|
|
{{end}}
|
|
{{end}}
|
|
{{end}}
|