From ca88f3b705f6c3a71470166f7cd1a5b15e237f69 Mon Sep 17 00:00:00 2001 From: gzbender Date: Tue, 9 Oct 2018 23:29:57 +0500 Subject: [PATCH] =?UTF-8?q?LIL-691=20=D0=94=D0=BE=D1=80=D0=B0=D0=B1=D0=BE?= =?UTF-8?q?=D1=82=D0=BA=D0=B0=20=D1=80=D0=B5=D1=84=D0=B5=D1=80=D0=B0=D0=BB?= =?UTF-8?q?=D1=8C=D0=BD=D0=BE=D0=B3=D0=BE=20=D0=BF=D1=80=D0=BE=D1=84=D0=B8?= =?UTF-8?q?=D0=BB=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/user/templates/blocks/profile-menu.html | 2 - apps/user/templates/user/bonus-history.html | 34 +++++++------ project/templates/blocks/lil_store_js.html | 1 + project/templates/blocks/share.html | 4 +- project/templates/blocks/user_menu.html | 14 +++--- project/templates/lilcity/main.html | 8 +++ web/package.json | 1 + web/src/img/lilcoin.png | Bin 0 -> 15987 bytes web/src/js/app.js | 2 +- web/src/js/modules/popup.js | 5 +- web/src/js/modules/profile.js | 14 ++++-- web/src/sass/_common.sass | 49 +++++++++++++++++++ 12 files changed, 102 insertions(+), 32 deletions(-) create mode 100644 web/src/img/lilcoin.png diff --git a/apps/user/templates/blocks/profile-menu.html b/apps/user/templates/blocks/profile-menu.html index 5bb21b94..b5b17b83 100644 --- a/apps/user/templates/blocks/profile-menu.html +++ b/apps/user/templates/blocks/profile-menu.html @@ -7,8 +7,6 @@ href="{% url 'user-edit-notifications' %}">Уведомления Платежи - - diff --git a/apps/user/templates/user/bonus-history.html b/apps/user/templates/user/bonus-history.html index cfddee9d..f98474bb 100644 --- a/apps/user/templates/user/bonus-history.html +++ b/apps/user/templates/user/bonus-history.html @@ -6,26 +6,32 @@ {% include "../blocks/profile-menu.html" with active="bonuses" %}
-
+
Бонусы
-
У вас {{ request.user.bonus|rupluralize:"бонус,бонуса,бонусов" }}
+
+
У вас {{ request.user.bonus }} Lil
+
+ 1 Lil = 1 Р +
+
- Вы можете пригласить своих друзей в наш сервис, за это - {% if config.REFERRER_BONUS == config.REFERRAL_BONUS %} - вы и они получите по {{ config.REFERRER_BONUS }}% - {% else %} - вы получите {{ config.REFERRER_BONUS }}%, а они {{ config.REFERRAL_BONUS }}% - {% endif %} - от суммы их первой покупки на бонусный счет. Приглашайте друзей, накапливайте бонусные баллы, тратьте бонусы - на приобретения доступа к школе и курсам. + Приглашайте друзей в Lil School и получайте {{ config.REFERRER_BONUS }}% + от суммы их первой покупки. Накапливайте монеты и тратьте их на оплату школы и курсов.
- Просто отправьте им эту ссылку, по которой они смогут зарегистрироваться: + Просто отправьте эту ссылку, по которой ваши друзья могут присоединиться к нам:
-
-
- +
+
+ +
+
+
+
+ +
+ {% include 'templates/blocks/share.html' with share_object_name="ссылкой" share_url=referrer_url %}
diff --git a/project/templates/blocks/lil_store_js.html b/project/templates/blocks/lil_store_js.html index 29aacb22..7df6d16d 100644 --- a/project/templates/blocks/lil_store_js.html +++ b/project/templates/blocks/lil_store_js.html @@ -22,6 +22,7 @@ urls: { courses: "{% url 'courses' %}", userProfileEdit: "{% url 'user-edit-profile' %}", + userBonuses: "{% url 'user-bonuses' %}", }, flags: { referrer: '{{ referrer.id|default:'' }}', diff --git a/project/templates/blocks/share.html b/project/templates/blocks/share.html index 85fa1ebb..0f0a360b 100644 --- a/project/templates/blocks/share.html +++ b/project/templates/blocks/share.html @@ -3,7 +3,9 @@