From b0c2a45920a0ae7c0c2054ad403cb7d326bc39eb Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Thu, 26 Sep 2019 15:29:47 +0530 Subject: Add banner management system to workshop website --- workshop_app/templates/workshop_app/index.html | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) (limited to 'workshop_app/templates') diff --git a/workshop_app/templates/workshop_app/index.html b/workshop_app/templates/workshop_app/index.html index 12a6562..4880a2a 100644 --- a/workshop_app/templates/workshop_app/index.html +++ b/workshop_app/templates/workshop_app/index.html @@ -67,13 +67,23 @@ $(document).ready(function(){ - +
+ {% if banners %} + {% for banner in banners %} + {% if banner.active %} + {{ banner.html | safe}} + {% endif %} + + + {% endfor %} + {% endif %} +