Do not display two "—" when map has no description

This commit is contained in:
Yohan Boniface 2013-05-14 14:03:44 +02:00
parent f93c5733fb
commit 3fc713d8ec

View file

@ -3,7 +3,7 @@
{% for map_inst in maps %}
<div class="col _35">
{% map_fragment map_inst %}
<div class="tintbox"><strong>{{ map_inst.name }}</strong>{% if map_inst.description %}«{{ map_inst.description }}» {% endif %}<em>{% if map_inst.owner %}{% trans "Cured by" %} <a href="{% url 'user_maps' map_inst.owner.username %}">{{ map_inst.owner }}</a></em>{% endif %} — <a href="{{ map_inst.get_absolute_url }}">{% trans "See this map!" %}</a></div>
<div class="tintbox"><strong>{{ map_inst.name }}</strong>{% if map_inst.description %}«{{ map_inst.description }}» {% endif %}<em>{% if map_inst.owner %}{% trans "Cured by" %} <a href="{% url 'user_maps' map_inst.owner.username %}">{{ map_inst.owner }}</a></em>{% endif %} — <a href="{{ map_inst.get_absolute_url }}">{% trans "See this map!" %}</a></div>
</div>
{% endfor %}
{% if maps.has_next %}