summaryrefslogtreecommitdiffstats
path: root/modules-available/dnbd3/templates
diff options
context:
space:
mode:
authorSimon Rettberg2018-04-11 23:46:13 +0200
committerSimon Rettberg2018-04-11 23:46:13 +0200
commitc226f585bf23c830cb98bcaa15394aec813e12bc (patch)
tree19a99a4f38da79edc3c5ed6fa7d822d8245ba06c /modules-available/dnbd3/templates
parent[roomplanner] Add icon to PCs that opens machine details from statistics module (diff)
downloadslx-admin-c226f585bf23c830cb98bcaa15394aec813e12bc.tar.gz
slx-admin-c226f585bf23c830cb98bcaa15394aec813e12bc.tar.xz
slx-admin-c226f585bf23c830cb98bcaa15394aec813e12bc.zip
[dnbd3] Colorful config formatting
Diffstat (limited to 'modules-available/dnbd3/templates')
-rw-r--r--modules-available/dnbd3/templates/page-proxy-config.html18
1 files changed, 16 insertions, 2 deletions
diff --git a/modules-available/dnbd3/templates/page-proxy-config.html b/modules-available/dnbd3/templates/page-proxy-config.html
index 79f56015..f258e030 100644
--- a/modules-available/dnbd3/templates/page-proxy-config.html
+++ b/modules-available/dnbd3/templates/page-proxy-config.html
@@ -1,4 +1,18 @@
+<style>
+.tt { font-family:monospace }
+.tt .eq { margin:0 1ex }
+.tt .usel { user-select:none }
+.tt .usel::before { content: attr(data-con) }
+</style>
<div role="tabpanel" class="tab-pane" id="tab-config">
<h2>{{lang_proxyConfig}}</h2>
- <pre>{{config}}</pre>
-</div> \ No newline at end of file
+ <div class="well tt" style="font-family:monospace">
+ {{#config}}
+ <span class="{{class1}}">{{text1}}</span>{{#text2}}<span class="eq">=</span>{{/text2}}<span class="{{class2}}">{{text2}}</span>
+ {{#extra}}
+ <span class="text-muted usel" data-con=" ; {{extra}}"></span>
+ {{/extra}}
+ <br>
+ {{/config}}
+ </div>
+</div>