{% load i18n creme_core_tags creme_widgets %}
{% with length=items|length %}
{% if length < threshold %}
{% for item in items %}{% widget_join %}{{item}}{% end_widget_join %}{% empty %}{{empty_label}}{% endfor %}
{% else %}
{% if summary is None %}
{% blocktrans with count=length %}{{count}} items{% endblocktrans %}
{% else %}
{% format_string_brace_named summary count=length %}
{% endif %}
{% for item in items %}- {{item}}
{% endfor %}
{% endif %}
{% endwith %}
{% comment %}
{% if not threshold or items|length < threshold %}
{% for item in items %}{% widget_join %}{{item}}{% end_widget_join %}{% empty %}{{empty_label}}{% endfor %}
{% else %}
{% widget_select_or_msg items empty_label %}
{% endif %}
{% endcomment %}