diff options
author | ManeraKai <manerakai@protonmail.com> | 2022-04-17 15:27:21 +0300 |
---|---|---|
committer | ManeraKai <manerakai@protonmail.com> | 2022-04-17 15:27:21 +0300 |
commit | f17463a9ea15a479376597f94f5d920bb8f4cc79 (patch) | |
tree | 55a0a00803262d0bbadc8f5f8985b8a679d47fa5 /pug/widgets | |
parent | Fix medium regex #137 (diff) | |
download | libredirect-f17463a9ea15a479376597f94f5d920bb8f4cc79.zip |
Added latency test #134
Diffstat (limited to 'pug/widgets')
-rw-r--r-- | pug/widgets/latency.pug | 13 |
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") + | + x(data-localise="__MSG_testInstancesLatency__") Test Instances Latency + input.button.button-inline(id=latencyVal style="display:none;") \ No newline at end of file |