Skip to content

Commit

Permalink
Merge pull request #136 from liip/fix/group-members-display-on-datase…
Browse files Browse the repository at this point in the history
…t-page

Fix/group members display on dataset page
  • Loading branch information
bellisk authored Nov 19, 2024
2 parents e294865 + a9e56b5 commit dd44e3f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ckanext/switzerland/templates/group/snippets/group_item.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{% block members %}
{% if 'member_count' in group and group.member_count %}
<strong class="count">{{ ungettext('{num} Member', '{num} Members', group.member_count).format(num=group.member_count) }}</strong>
{% elif 'member_count' in group %}
<span class="count">{{ _('0 Members') }}</span>
{% else %}
{% endif %}
{% endblock %}

0 comments on commit dd44e3f

Please sign in to comment.