diff --git a/apps/course/templates/course/course.html b/apps/course/templates/course/course.html index ed57d607..e7e330d0 100644 --- a/apps/course/templates/course/course.html +++ b/apps/course/templates/course/course.html @@ -184,37 +184,7 @@ {% endcomment %} {% endif %} - -
-
Поделиться курсом
-
- - - - - - - - - -
-
+ {% include 'templates/blocks/share.html' %} {% if course.from_author %}
@@ -446,36 +416,7 @@
- + {% include 'templates/blocks/share.html' %}
{% endblock content %} diff --git a/apps/course/templates/course/lesson.html b/apps/course/templates/course/lesson.html index a66a3c0b..27afd008 100644 --- a/apps/course/templates/course/lesson.html +++ b/apps/course/templates/course/lesson.html @@ -125,18 +125,7 @@
- + {% include 'templates/blocks/share.html' %}
{% endblock content %} diff --git a/apps/school/templates/school/livelesson_detail.html b/apps/school/templates/school/livelesson_detail.html index 03b667fc..25211945 100644 --- a/apps/school/templates/school/livelesson_detail.html +++ b/apps/school/templates/school/livelesson_detail.html @@ -34,18 +34,7 @@ {% endfor %}
- + {% include 'templates/blocks/share.html' %}
{% endblock content %} diff --git a/project/templates/blocks/share.html b/project/templates/blocks/share.html new file mode 100644 index 00000000..6c9abb2c --- /dev/null +++ b/project/templates/blocks/share.html @@ -0,0 +1,26 @@ +{% load static %} +
+
Поделиться {% if livelesson or lesson %}уроком{% else %}курсом{% endif %}
+
+ + + + +
+