{# @description An organization's card for the organization listing: logo, name with ROR ID, type and place, the roles on a credit when given one, and its member and credit counts. #} {# @prop contributor:text | description:"An Organization, or a Contribution crediting one." #} {# @prop class:text | description:"Extra CSS classes on the card." #} {% load i18n contributor_tags %} {% with c=contributor|as_contributor %} {% if c %} {% with roles=contributor.roles.all location=c.get_location_display counts=c.get_credit_counts members=c.members.count %}

{% if c.type %}{% endif %} {% if location %}

{{ location }}

{% endif %} {% if roles %}
{% for role in roles %}{% endfor %}
{% endif %}
{% if members %} {% blocktranslate count counter=members %}{{ counter }} member{% plural %}{{ counter }} members{% endblocktranslate %} {% endif %} {% for label, count in counts.items %} {{ count }} {{ label }} {% endfor %} {% if not members and not counts %}{% translate "No members or credits yet" %}{% endif %}
{% endwith %} {% endif %} {% endwith %}