summaryrefslogtreecommitdiffstats
path: root/modules-available/roomplanner/templates
diff options
context:
space:
mode:
authorSimon Rettberg2023-01-18 16:15:18 +0100
committerSimon Rettberg2023-01-18 16:15:18 +0100
commit89d952f7e9475d79c9e9a46e78e84bd63978dd04 (patch)
tree5a15c3994ae8dcb5c061b3cf28a27f6337cdd5cc /modules-available/roomplanner/templates
parent[dnbd3] Extend timeout for inactive graph (diff)
downloadslx-admin-89d952f7e9475d79c9e9a46e78e84bd63978dd04.tar.gz
slx-admin-89d952f7e9475d79c9e9a46e78e84bd63978dd04.tar.xz
slx-admin-89d952f7e9475d79c9e9a46e78e84bd63978dd04.zip
[statistics] Listview: Display roomlayout and unique properties in a sidebar
.... if viewport is wide enouh, it will be a sidebar, otherwise, it will be displayed above the actual list.
Diffstat (limited to 'modules-available/roomplanner/templates')
-rw-r--r--modules-available/roomplanner/templates/svg-plan.html14
1 files changed, 13 insertions, 1 deletions
diff --git a/modules-available/roomplanner/templates/svg-plan.html b/modules-available/roomplanner/templates/svg-plan.html
index a2ecd5a7..4b0339f3 100644
--- a/modules-available/roomplanner/templates/svg-plan.html
+++ b/modules-available/roomplanner/templates/svg-plan.html
@@ -1,4 +1,3 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
version="1.1"
@@ -21,6 +20,9 @@
rect.hl {
fill: url(#screenhl);
}
+ rect.muted {
+ fill: url(#muted);
+ }
]]>
</style>
<defs>
@@ -32,12 +34,19 @@
<stop offset="0%" stop-color="#afa" />
<stop offset="100%" stop-color="#074" />
</radialGradient>
+ <radialGradient id="muted" cx=".4" cy=".3" r="1">
+ <stop offset="0%" stop-color="#bbb" />
+ <stop offset="100%" stop-color="#888" />
+ </radialGradient>
</defs>
<g transform="scale({{scale}}) rotate({{rotate}} {{centerX}} {{centerY}})">
<line x1="0" y1="{{line.y}}"
x2="{{line.x}}" y2="{{line.y}}"
style="stroke:#555;stroke-width:.2;opacity:.5" />
{{#machines}}
+ {{#links}}
+ <a xlink:href="./?do=statistics&amp;uuid={{machineuuid}}">
+ {{/links}}
<g transform="translate({{gridCol}} {{gridRow}})">
<rect transform="rotate({{rotation}} 1.9 1.9)"
x=".1"
@@ -55,6 +64,9 @@
class="scrn {{class}}"
/>
</g>
+ {{#links}}
+ </a>
+ {{/links}}
{{/machines}}
</g>
</svg>