about summary refs log tree commit diff stats
path: root/pug/widgets/latency.pug
diff options
context:
space:
mode:
authorManeraKai <manerakai@protonmail.com>2022-04-17 15:27:21 +0300
committerManeraKai <manerakai@protonmail.com>2022-04-17 15:27:21 +0300
commitf17463a9ea15a479376597f94f5d920bb8f4cc79 (patch)
tree55a0a00803262d0bbadc8f5f8985b8a679d47fa5 /pug/widgets/latency.pug
parentFix medium regex #137 (diff)
downloadlibredirect-f17463a9ea15a479376597f94f5d920bb8f4cc79.zip
Added latency test #134
Diffstat (limited to 'pug/widgets/latency.pug')
-rw-r--r--pug/widgets/latency.pug13
1 files changed, 13 insertions, 0 deletions
diff --git a/pug/widgets/latency.pug b/pug/widgets/latency.pug
new file mode 100644
index 00000000..0069ca74
--- /dev/null
+++ b/pug/widgets/latency.pug
@@ -0,0 +1,13 @@
+mixin latency(service)
+    - var latencyVal
+    if (service)
+        - latencyVal = `latency-${service}`
+    else
+        - latencyVal = `latency`
+
+    label.button.button-inline(id=`${latencyVal}-label` for=latencyVal) 
+        svg(xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor")
+            path(d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z")
+        |&nbsp;
+        x(data-localise="__MSG_testInstancesLatency__") Test Instances Latency
+    input.button.button-inline(id=latencyVal style="display:none;")
\ No newline at end of file