From cacc223eb98f0371bb854a298c4ba28040e6aca1 Mon Sep 17 00:00:00 2001 From: Celestora Date: Mon, 18 Apr 2022 18:54:50 +0300 Subject: [PATCH] Add votes-balance noticebox to sidebar Resolves #539 --- Web/Presenters/templates/@layout.xml | 8 ++++++++ Web/static/css/style.css | 9 +++++++++ locales/en.strings | 2 ++ locales/ru.strings | 2 ++ 4 files changed, 21 insertions(+) diff --git a/Web/Presenters/templates/@layout.xml b/Web/Presenters/templates/@layout.xml index 9f5eea9a..e7672aac 100644 --- a/Web/Presenters/templates/@layout.xml +++ b/Web/Presenters/templates/@layout.xml @@ -186,6 +186,14 @@ {$club->getName()} + +
+ {tr("you_still_have_x_points", $thisUser->getCoins())|noescape} +

+ + {_top_up_your_account} » +
+ {php echo OPENVK_ROOT_CONF['openvk']['preferences']['adPoster']['caption']} diff --git a/Web/static/css/style.css b/Web/static/css/style.css index 52398d5f..f8e0f9d0 100644 --- a/Web/static/css/style.css +++ b/Web/static/css/style.css @@ -1905,3 +1905,12 @@ table td[width="120"] { .center { margin: 0 auto; } + +#votesBalance { + margin-top: 50px; + padding: 7px; + background-color: #f6f6f6; + border-bottom: 1.5px solid #707070; + text-align: center; + user-select: none; +} \ No newline at end of file diff --git a/locales/en.strings b/locales/en.strings index 800f5ef2..d7c8fba1 100644 --- a/locales/en.strings +++ b/locales/en.strings @@ -558,6 +558,8 @@ "points" = "Votes"; "points_count" = "votes"; "on_your_account" = "on your account"; +"top_up_your_account" = "Get more"; +"you_still_have_x_points" = "You have $1 unused votes."; "vouchers" = "Vouchers"; "have_voucher" = "Have voucher"; diff --git a/locales/ru.strings b/locales/ru.strings index b938448e..a3957584 100644 --- a/locales/ru.strings +++ b/locales/ru.strings @@ -588,6 +588,8 @@ "points" = "Голоса"; "points_count" = "голосов"; "on_your_account" = "на вашем счету"; +"top_up_your_account" = "Пополнить баланс"; +"you_still_have_x_points" = "У Вас $1 неиспользованных голосов."; "vouchers" = "Ваучеры"; "have_voucher" = "Есть ваучер";