diff options
| author | MHSanaei <mc.sanaei@gmail.com> | 2023-02-09 22:18:06 +0300 |
|---|---|---|
| committer | MHSanaei <mc.sanaei@gmail.com> | 2023-02-09 22:18:06 +0300 |
| commit | b73e4173a3c1e69e02ad6b4e3b43e425e57a5be9 (patch) | |
| tree | d95d2f5e903d97082e11eb9f9023c165b1bde388 /web/html/xui/inbounds_client_row.html | |
3x-ui
Diffstat (limited to 'web/html/xui/inbounds_client_row.html')
| -rw-r--r-- | web/html/xui/inbounds_client_row.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/web/html/xui/inbounds_client_row.html b/web/html/xui/inbounds_client_row.html new file mode 100644 index 00000000..cb231f5e --- /dev/null +++ b/web/html/xui/inbounds_client_row.html @@ -0,0 +1,22 @@ +{{define "form/client_row"}} +<template slot="client" slot-scope="text, client"> + [[ client.email ]] + <a-tag v-if="!isClientEnabled(record, client.email)" color="red"> expired</a-tag> +</template> +<template slot="traffic" slot-scope="text, client"> + <a-tag v-if="client._totalGB === 0" color="blue">{{ i18n "used" }}: [[ sizeFormat(getUpStats(record, client.email) + getDownStats(record, client.email)) ]]</a-tag> + <a-tag v-if="client._totalGB > 0 && !isTrafficExhausted(record, client.email)" color="green">{{ i18n "used" }}: [[ sizeFormat(getUpStats(record, client.email) + getDownStats(record, client.email)) ]] / [[client._totalGB]]GB</a-tag> + <a-tag v-if="client._totalGB > 0 && isTrafficExhausted(record, client.email)" color="red">{{ i18n "used" }}: [[ sizeFormat(getUpStats(record, client.email) + getDownStats(record, client.email)) ]] / [[client._totalGB]]GB</a-tag> +</template> +<template slot="expiryTime" slot-scope="text, client, index"> + <template v-if="client._expiryTime > 0"> + <a-tag v-if="isExpiry(record, index)" color="red"> + [[ DateUtil.formatMillis(client._expiryTime) ]] + </a-tag> + <a-tag v-else color="blue"> + [[ DateUtil.formatMillis(client._expiryTime) ]] + </a-tag> + </template> + <a-tag v-else color="green">{{ i18n "indefinite" }}</a-tag> +</template> +{{end}} |
