diff options
| author | MHSanaei <mc.sanaei@gmail.com> | 2023-02-16 18:58:20 +0300 |
|---|---|---|
| committer | MHSanaei <mc.sanaei@gmail.com> | 2023-02-16 18:58:20 +0300 |
| commit | fe9844b51b04bb924bb0e5444b493668c9df92a2 (patch) | |
| tree | f32156eff095434b2e256630d4b2ddf8ea5715d2 /web/html/xui/inbounds_client_row.html | |
| parent | 30611383de06c9a97e3cbb8fcf1bbe531846f6b2 (diff) | |
update pack
Diffstat (limited to 'web/html/xui/inbounds_client_row.html')
| -rw-r--r-- | web/html/xui/inbounds_client_row.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/web/html/xui/inbounds_client_row.html b/web/html/xui/inbounds_client_row.html index 7453d062..6e03e4ca 100644 --- a/web/html/xui/inbounds_client_row.html +++ b/web/html/xui/inbounds_client_row.html @@ -16,16 +16,16 @@ <a-tag v-if="!isClientEnabled(record, client.email)" color="red">{{ i18n "disabled" }}</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> + <a-tag color="blue">[[ sizeFormat(getUpStats(record, client.email)) ]] / [[ sizeFormat(getDownStats(record, client.email)) ]]</a-tag> + <template v-if="client._totalGB > 0"> + <a-tag v-if="isTrafficExhausted(record, client.email)" color="red">[[client._totalGB]]GB</a-tag> + <a-tag v-else color="cyan">[[client._totalGB]]GB</a-tag> + </template> + <a-tag v-else color="green">{{ i18n "indefinite" }}</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"> + <a-tag :color="isExpiry(record, index)? 'red' : 'blue'"> [[ DateUtil.formatMillis(client._expiryTime) ]] </a-tag> </template> |
