Hide both the label and the number of datasets when 'status' is not available

This commit is contained in:
Stefan Oderbolz 2013-08-15 13:24:04 +02:00
parent 4dfd091aec
commit f26baf6c09
1 changed files with 4 additions and 9 deletions

View File

@ -21,15 +21,10 @@
{% endif %}
<div class="nums">
<dl>
<dt>
{{ _('Datasets') }}
</dt>
<dd>
{% if c.harvest_source.status %}
{{ c.harvest_source.status.total_datasets }}
{% endif %}
</dd>
{% if c.harvest_source.status %}
<dt>{{ _('Datasets') }}</dt>
<dd>{{ c.harvest_source.status.total_datasets }}</dd>
{% endif %}
</dl>
</div>
</section>