Browse Source

Fix copy&paste button on /config, move pre style to CSS

Signed-off-by: Julius Volz <julius.volz@gmail.com>
pull/5226/head
Julius Volz 6 years ago
parent
commit
45b91e8e80
  1. 11
      web/ui/static/css/config.css
  2. 5
      web/ui/templates/config.html

11
web/ui/static/css/config.css

@ -1,3 +1,14 @@
.btn {
border-radius: 0;
}
#config_yaml {
display: block;
padding: 9.5px;
font-size: 13px;
color:#333;
word-break: break-all;
background-color: #f5f5f5;
border: 1px solid #ccc;
border-radius: 4px;
}

5
web/ui/templates/config.html

@ -5,7 +5,8 @@
{{define "content"}}
<div class="container-fluid">
<h2 id="configuration">Configuration</h2>
<pre style="display:block; padding:9.5px; font-size:13px; color:#333; word-break:break-all; background-color:#f5f5f5; border:1px solid #ccc; border-radius:4px; ">{{.}}</pre>
<h2 id="configuration">Configuration <button type="button" class="btn btn-primary" id="copyToClipboard">Copy to clipboard</button></h2>
<pre id="config_yaml">{{.}}</pre>
</div>
{{end}}

Loading…
Cancel
Save