{% set statuses = {
    all: {
        'label': 'Assigned to all',
        'icon': '<i class="fa item-status fa-fw fa-circle" aria-hidden="true"></i>'
    },
    none: {
        'label': 'Not assigned',
        'icon': '<i class="far item-status fa-fw fa-circle" aria-hidden="true"></i>'
    },
    some: {
        'label': 'Some assignments',
        'icon': '<i class="fa item-status fa-fw fa-adjust" aria-hidden="true"></i>'
    }
} %}

<li data-pm-blocktype="{{ module.type }}" data-pm-data="{{ module.toJson()|e('html_attr') }}">
    {% set status = statuses[module.assigned] %}
    {#<i class="fa fa-reorder font-small item-reorder size-10" aria-hidden="true"></i>#}
    <div class="title size-90">
        <span class="title-status" title="{{ status.label }}" data-tip="{{ status.label }}" aria-label="{{ status.label }}">{{ status.icon|raw }}</span>
        <span class="title-name" title="Type: {{ module.options.type }} (id: {{ module.name }})">{{ module.title|default(module.name) }}</span>
    </div>
    <i class="fa item-settings fa-cog size-10" aria-hidden="true"></i>
</li>