diff options
Diffstat (limited to 'web/html/xui/inbound_client_table.html')
| -rw-r--r-- | web/html/xui/inbound_client_table.html | 36 |
1 files changed, 32 insertions, 4 deletions
diff --git a/web/html/xui/inbound_client_table.html b/web/html/xui/inbound_client_table.html index 09a0120a..13593cea 100644 --- a/web/html/xui/inbound_client_table.html +++ b/web/html/xui/inbound_client_table.html @@ -90,7 +90,14 @@ <template slot="content"> <span v-if="client.expiryTime < 0">{{ i18n "pages.client.delayedStart" }} </span> - <span v-else>[[ DateUtil.formatMillis(client._expiryTime) ]]</span> + <span v-else> + <template v-if="app.datepicker === 'gregorian'"> + [[ DateUtil.formatMillis(client._expiryTime) ]] + </template> + <template v-else> + [[ DateUtil.convertToJalalian(moment(client._expiryTime)) ]] + </template> + </span> </template> <table> <tr class="tr-table-box"> @@ -108,7 +115,14 @@ <template slot="content"> <span v-if="client.expiryTime < 0">{{ i18n "pages.client.delayedStart" }} </span> - <span v-else>[[ DateUtil.formatMillis(client._expiryTime) ]]</span> + <span v-else> + <template v-if="app.datepicker === 'gregorian'"> + [[ DateUtil.formatMillis(client._expiryTime) ]] + </template> + <template v-else> + [[ DateUtil.convertToJalalian(moment(client._expiryTime)) ]] + </template> + </span> </template> <a-tag style="min-width: 50px; border: none;" :color="userExpiryColor(app.expireDiff, client, themeSwitcher.isDarkTheme)"> [[ remainedDays(client.expiryTime) ]] </a-tag> </a-popover> @@ -201,7 +215,14 @@ <template slot="content"> <span v-if="client.expiryTime < 0">{{ i18n "pages.client.delayedStart" }} </span> - <span v-else>[[ DateUtil.formatMillis(client._expiryTime) ]]</span> + <span v-else> + <template v-if="app.datepicker === 'gregorian'"> + [[ DateUtil.formatMillis(client._expiryTime) ]] + </template> + <template v-else> + [[ DateUtil.convertToJalalian(moment(client._expiryTime)) ]] + </template> + </span> </template> <a-progress :show-info="false" :status="isClientEnabled(record, client.email)? 'exception' : ''" :percent="expireProgress(client.expiryTime, client.reset)" /> </a-popover> @@ -214,7 +235,14 @@ <template slot="content"> <span v-if="client.expiryTime < 0">{{ i18n "pages.client.delayedStart" }} </span> - <span v-else>[[ DateUtil.formatMillis(client._expiryTime) ]]</span> + <span v-else> + <template v-if="app.datepicker === 'gregorian'"> + [[ DateUtil.formatMillis(client._expiryTime) ]] + </template> + <template v-else> + [[ DateUtil.convertToJalalian(moment(client._expiryTime)) ]] + </template> + </span> </template> <a-tag style="min-width: 50px; border: none;" :color="userExpiryColor(app.expireDiff, client, themeSwitcher.isDarkTheme)"> [[ remainedDays(client.expiryTime) ]] </a-tag> </a-popover> |
