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

Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
Julius Volz 2019-02-17 19:32:09 +00:00
parent cd569b51d9
commit 45b91e8e80
2 changed files with 14 additions and 2 deletions

View File

@ -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;
}

View File

@ -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}}