From 73cbf6e1d5a50a15f2c71e6df0ce46b32af9557c Mon Sep 17 00:00:00 2001 From: Ivlev Denis Date: Mon, 29 Jan 2018 08:43:24 +0300 Subject: [PATCH] Add course author photo --- apps/course/templates/course/_items.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/course/templates/course/_items.html b/apps/course/templates/course/_items.html index 1927dfde..eba23759 100644 --- a/apps/course/templates/course/_items.html +++ b/apps/course/templates/course/_items.html @@ -20,7 +20,11 @@
{{ course.short_description }}
+ {% if course.author.photo %} +
+ {% else %}
+ {% endif %}
{{ course.author.first_name }} {{ course.author.last_name }}