Skip to content

Commit

Permalink
[#1102] Don't display dataset count if packages property is not there
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Dec 5, 2013
1 parent 3e9a13f commit db01ffe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/templates/group/snippets/group_item.html
Expand Up @@ -30,7 +30,7 @@ <h3 class="media-heading">{{ group.display_name }}</h3>
{% block datasets %}
{% if group.packages %}
<strong class="count">{{ ungettext('{num} Dataset', '{num} Datasets', group.packages).format(num=group.packages) }}</strong>
{% else %}
{% elif group.packages == 0 %}
<span class="count">{{ _('0 Datasets') }}</span>
{% endif %}
{% endblock %}
Expand Down

0 comments on commit db01ffe

Please sign in to comment.