From d7aa11a16bc4bc7ba0a9b03c84648297c04be010 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Tue, 2 Apr 2013 01:24:18 +0100 Subject: [PATCH] If no description is available, show a message instead of blank. --- app/stores/templates/stores/chain_detail.html | 6 +++++- app/stores/templates/stores/store_detail.html | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/app/stores/templates/stores/chain_detail.html b/app/stores/templates/stores/chain_detail.html index 6ee646a..099b24e 100644 --- a/app/stores/templates/stores/chain_detail.html +++ b/app/stores/templates/stores/chain_detail.html @@ -44,7 +44,11 @@ {% if chain.website %}

Website: {{ chain.website }}

{% endif %} - {{ chain.long_description|markdown }} + {% if chain.long_description %} + {{ chain.long_description|markdown }} + {% else %} +

No description / write up available for this chain at the moment.

+ {% endif %} diff --git a/app/stores/templates/stores/store_detail.html b/app/stores/templates/stores/store_detail.html index c15c906..7f92629 100644 --- a/app/stores/templates/stores/store_detail.html +++ b/app/stores/templates/stores/store_detail.html @@ -50,7 +50,11 @@ $(document).ready(function(){initialize_map_store()});
+ {% if store.long_description %} {{ store.long_description|markdown }} + {% else %} +

No description / write up available for this store at the moment.

+ {% endif %} {% if store.brands.count %}

Brands Stocked