From cdb0bb89befa6539cfe0aca70037f04db6dc71df Mon Sep 17 00:00:00 2001 From: Ivlev Denis Date: Wed, 18 Apr 2018 19:07:15 +0300 Subject: [PATCH] Update school template --- apps/school/templates/school/school.html | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/apps/school/templates/school/school.html b/apps/school/templates/school/school.html index f406f593..15ded766 100644 --- a/apps/school/templates/school/school.html +++ b/apps/school/templates/school/school.html @@ -1,7 +1,11 @@ {% extends "templates/lilcity/index.html" %} {% load static %} {% block content %} - {% include "../blocks/promo.html" %} - {% include "../blocks/about.html" %} - {% include "../blocks/advantages.html" %} - {% include "../blocks/online.html" %} - {% include "../blocks/schedule.html" %} +{% if not is_purchased %} +{% include "../blocks/promo.html" %} +{% include "../blocks/about.html" %} +{% include "../blocks/advantages.html" %} +{% include "../blocks/online.html" %} +{% include "../blocks/schedule.html" %} +{% else %} +{% include "../blocks/schedule_purchased.html" %} +{% endif %} {% endblock %}