From 458da0e5ddf0a43bc6336e0105a1cfbbe46310e3 Mon Sep 17 00:00:00 2001 From: Ivlev Denis Date: Sun, 29 Apr 2018 14:04:05 +0300 Subject: [PATCH] Cut block share to a separate template --- apps/course/templates/course/course.html | 63 +------------------ apps/course/templates/course/lesson.html | 13 +--- .../templates/school/livelesson_detail.html | 13 +--- project/templates/blocks/share.html | 26 ++++++++ 4 files changed, 30 insertions(+), 85 deletions(-) create mode 100644 project/templates/blocks/share.html 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 %} +
+ + +