Do not display two "—" when map has no description
This commit is contained in:
parent
f93c5733fb
commit
3fc713d8ec
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
{% for map_inst in maps %}
|
{% for map_inst in maps %}
|
||||||
<div class="col _35">
|
<div class="col _35">
|
||||||
{% map_fragment map_inst %}
|
{% 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>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if maps.has_next %}
|
{% if maps.has_next %}
|
||||||
|
|
Loading…
Reference in a new issue