Only show relative update time if present

This commit is contained in:
Felipe Martín 2015-07-01 22:02:11 +02:00
parent 085d72c467
commit 4901468275
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@
<a href="{{ relation.get_url }}" target="_blank">
<i class="{% if relation.shop.flag_code == 'uk' %}gb{% else %}{{ relation.shop.flag_code }}{% endif %} flag"></i> {{ relation.shop.name }}
</a>
<em class="float-right">{% trans "Updated " %} <span data-relative="{{ relation.last_price.date.isoformat }}"></span></em>
{% if relation.last_price.date %}<em class="float-right">{% trans "Updated " %} <span data-relative="{{ relation.last_price.date.isoformat }}"></span></em>{% endif %}
</td>
{% endspaceless %}
<td class="center aligned {{ stock|yesno:'positive,negative' }}" {% if not price %}colspan="2"{% endif %}>