             {% if sorted_categories|length > 3 %}
                                            <span class="badge bg-secondary">+{{ sorted_categories|length - 3 }} more</span>
                                        {% endif %}
                                        
                                        {% if not data.by_category %}
                                            <span class="text-muted small">No categories</span>
                                        {% endif %}
                         