If no description is available, show a message instead of blank.

This commit is contained in:
2013-04-02 01:24:18 +01:00
parent 4a7d009483
commit d7aa11a16b
2 changed files with 9 additions and 1 deletions

View File

@@ -44,7 +44,11 @@
{% if chain.website %}
<p><b>Website</b>: <a href="{{ chain.website }}" target="_blank">{{ chain.website }}</a></p>
{% endif %}
{% if chain.long_description %}
{{ chain.long_description|markdown }}
{% else %}
<p>No description / write up available for this chain at the moment.</p>
{% endif %}
</div>
</div>

View File

@@ -50,7 +50,11 @@ $(document).ready(function(){initialize_map_store()});
<div class="row-fluid">
<div class="span8">
{% if store.long_description %}
{{ store.long_description|markdown }}
{% else %}
<p>No description / write up available for this store at the moment.</p>
{% endif %}
{% if store.brands.count %}
<h3>Brands Stocked</h3>