diff options
author | ManeraKai <manerakai@protonmail.com> | 2022-05-12 04:22:12 +0300 |
---|---|---|
committer | ManeraKai <manerakai@protonmail.com> | 2022-05-12 04:22:12 +0300 |
commit | 42dbb68ee00d41ac270df1a93acf29c4d17c8db1 (patch) | |
tree | 8916979ef93db1ecb0ea057c8b5929fec5621572 /src/pages/widgets/latency.pug | |
parent | Made maps redirect async #208 (diff) | |
download | libredirect-42dbb68ee00d41ac270df1a93acf29c4d17c8db1.zip |
Reorganized pug files. Added Unify settings to libreddit #234
Diffstat (limited to 'src/pages/widgets/latency.pug')
-rw-r--r-- | src/pages/widgets/latency.pug | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/pages/widgets/latency.pug b/src/pages/widgets/latency.pug new file mode 100644 index 00000000..0069ca74 --- /dev/null +++ b/src/pages/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 |