libredirect/pug/widgets/latency.pug

13 lines
651 B
Plaintext

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;")