From cd91ff774f36ceedb02b3d835b6205ac3068f131 Mon Sep 17 00:00:00 2001 From: OldHawk Date: Tue, 12 Sep 2017 18:02:28 +0800 Subject: [PATCH] feat(H&R): show H&R warning tooltip info in user account status page --- modules/core/client/app/trans-string-en.js | 2 ++ modules/core/client/app/trans-string-zh.js | 2 ++ .../users/client/views/status/account.client.view.html | 7 ++++++- .../users/client/views/status/warning.client.view.html | 8 +++++--- 4 files changed, 15 insertions(+), 4 deletions(-) diff --git a/modules/core/client/app/trans-string-en.js b/modules/core/client/app/trans-string-en.js index 067599f2..210dbdb3 100644 --- a/modules/core/client/app/trans-string-en.js +++ b/modules/core/client/app/trans-string-en.js @@ -485,6 +485,8 @@ REMOVE_WARNING_SUCCESSFULLY: 'Remove warning successfully', REMOVE_WARNING_ERROR: 'Remove warning failed', REMOVE_WARNING_NO_ENOUGH_SCORE: 'ERROR: no enough score!', + WARNING_TOOLTIP: 'You have {{wnumber}} H&R warnings, please deal with it immediately, ', + WARNING_DETAIL_LINK: 'detail is here', //user score SCORE: { diff --git a/modules/core/client/app/trans-string-zh.js b/modules/core/client/app/trans-string-zh.js index 88c4fb13..c29d29d0 100644 --- a/modules/core/client/app/trans-string-zh.js +++ b/modules/core/client/app/trans-string-zh.js @@ -485,6 +485,8 @@ REMOVE_WARNING_SUCCESSFULLY: '警告移除成功', REMOVE_WARNING_ERROR: '警告移除失败', REMOVE_WARNING_NO_ENOUGH_SCORE: '错误: 积分不足!', + WARNING_TOOLTIP: '您有 {{wnumber}} 个 H&R 警告, 请立即处理, ', + WARNING_DETAIL_LINK: '查看详情', //user score SCORE: { diff --git a/modules/users/client/views/status/account.client.view.html b/modules/users/client/views/status/account.client.view.html index e34a465b..150efa87 100644 --- a/modules/users/client/views/status/account.client.view.html +++ b/modules/users/client/views/status/account.client.view.html @@ -1,6 +1,11 @@
+ +
{{ 'STATUS_FIELD.PICTURE' | translate}}:
@@ -107,7 +112,7 @@
{{ 'STATUS_FIELD.UPTOTAL' | translate}}:
{{ vm.user.uptotal }} {{ 'STATUS_FIELD.DETAIL' | translate }}
+ ng-if="vm.user.uptotal>0">{{ 'STATUS_FIELD.DETAIL' | translate }}
{{ 'STATUS_FIELD.SEEDED' | translate}}:
{{ vm.user.seeded }}
-
-
+
+ @@ -121,7 +121,9 @@

- +