From ea2cda9ff5d622cbace55b519a05e84bb276846f Mon Sep 17 00:00:00 2001 From: gzbender Date: Tue, 20 Aug 2019 11:16:12 +0300 Subject: [PATCH] =?UTF-8?q?=D0=91=D0=B0=D0=B3=D0=B8=20=D1=81=D1=82=D1=80?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/content/models.py | 2 +- apps/course/templates/course/course.html | 10 +++++----- apps/course/templates/course/course_only_lessons.html | 8 ++++---- apps/course/views.py | 5 ----- project/templates/blocks/about.html | 2 +- project/templates/blocks/footer.html | 1 + project/templates/blocks/header.html | 4 ---- project/templates/blocks/online_school.html | 6 +++--- web/src/sass/_common.sass | 7 +++++-- 9 files changed, 20 insertions(+), 25 deletions(-) diff --git a/apps/content/models.py b/apps/content/models.py index 7178efd4..e57746f3 100644 --- a/apps/content/models.py +++ b/apps/content/models.py @@ -184,7 +184,7 @@ class Banner(models.Model): def is_video_url(self): return self.url and ('vimeo.com' in self.url or 'youtube.com' in self.url and 'watch' in self.url - or 'youto.be' in self.url) + or 'youtu.be' in self.url) class Contest(models.Model): diff --git a/apps/course/templates/course/course.html b/apps/course/templates/course/course.html index 99642e86..ac76811a 100644 --- a/apps/course/templates/course/course.html +++ b/apps/course/templates/course/course.html @@ -166,25 +166,25 @@
- Описание курса + Описание курса {% if request.user.is_authenticated %} {% if course.author == request.user and request.user.role >= request.user.AUTHOR_ROLE %} УРОКИ {% elif request.user.role == request.user.ADMIN_ROLE %} УРОКИ {% else %} УРОКИ diff --git a/apps/course/templates/course/course_only_lessons.html b/apps/course/templates/course/course_only_lessons.html index 5942dd74..f8931728 100644 --- a/apps/course/templates/course/course_only_lessons.html +++ b/apps/course/templates/course/course_only_lessons.html @@ -150,25 +150,25 @@
- Описание курса + Описание курса {% if course.author == request.user and request.user.role >= request.user.AUTHOR_ROLE %} УРОКИ {% elif request.user.role == request.user.ADMIN_ROLE %} УРОКИ {% else %} УРОКИ {% if not paid and course.price %} diff --git a/apps/course/views.py b/apps/course/views.py index 34f329eb..d4bd0298 100644 --- a/apps/course/views.py +++ b/apps/course/views.py @@ -230,7 +230,6 @@ class CourseView(DetailView): except queryset.model.DoesNotExist: raise Http404(_("No %(verbose_name)s found matching the query") % {'verbose_name': queryset.model._meta.verbose_name}) - obj.cover = None return obj def get_context_data(self, **kwargs): @@ -360,10 +359,6 @@ class CoursesView(ListView): for course in context['course_items']: if course.id in can_buy_again_courses: course.buy_again_price = course.price / 2 - for course in context['course_items']: - course.cover = None - for course in context['new_courses']: - course.cover = None return context def get_template_names(self): diff --git a/project/templates/blocks/about.html b/project/templates/blocks/about.html index d24701e3..23427255 100644 --- a/project/templates/blocks/about.html +++ b/project/templates/blocks/about.html @@ -10,7 +10,7 @@

Вы житель мегаполиса и у вас нет времени дополнительно развивать своего ребенка? Или вы живете в маленьком городе, где нет качественных школ и секций для детей?

-

Lil-School это решение для тех родителей, кто стремится дать лучшее своему ребенку. +

Lil School - это решение для тех родителей, кто стремится дать лучшее своему ребенку. Учитесь, не выходя из дома!

diff --git a/project/templates/blocks/footer.html b/project/templates/blocks/footer.html index 021faff8..07edfa55 100644 --- a/project/templates/blocks/footer.html +++ b/project/templates/blocks/footer.html @@ -24,6 +24,7 @@ Рисовальный лагерь Видео-курсы + Сертификаты Блог
diff --git a/project/templates/blocks/header.html b/project/templates/blocks/header.html index 24b5ecd0..d2a302b8 100644 --- a/project/templates/blocks/header.html +++ b/project/templates/blocks/header.html @@ -64,10 +64,6 @@ -
{% include 'templates/blocks/user_menu.html' %} diff --git a/project/templates/blocks/online_school.html b/project/templates/blocks/online_school.html index 777baebe..b0d720ca 100644 --- a/project/templates/blocks/online_school.html +++ b/project/templates/blocks/online_school.html @@ -5,15 +5,15 @@
Видеоуроки
-
Каждый день!
+
каждый день!
5 дисциплин
-
В разных техниках
+
в разных техниках
Запись эфира
-
Хранится 7 дней
+
хранится 7 дней
diff --git a/web/src/sass/_common.sass b/web/src/sass/_common.sass index 1b7579f9..2b362379 100755 --- a/web/src/sass/_common.sass +++ b/web/src/sass/_common.sass @@ -217,6 +217,9 @@ button background: none border: 1px solid $cl color: $cl + &_stroke-green + border: solid 1px #7ed321 + background: none &_pink-blue background-image: linear-gradient(100deg, #8febff, #ffa2cb) &_disabled @@ -443,8 +446,8 @@ a.btn visibility: visible &__section display: block - height: 100px - margin: 0 15px + height: 90px + margin: -10px 15px 0 border-bottom: 1px solid transparent +fb font-size: 12px