about summary refs log tree commit diff stats
path: root/src/pages/widgets/latency.pug
blob: e5bf53b24ff987b39950d0a42392ee34adf279b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
mixin latency(service)
    - var latencyVal
    if (service)
        - latencyVal = `latency-${service}`
    else
        - latencyVal = `latency`

    .buttons.buttons-inline
        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;")