</a>
                        {% else %}
                        <!-- Show compact delete button -->
                        <a href="{{ url_for('delete_group', group_id=group.id) }}" class="btn btn-sm btn-outline-danger">
                            <i class="fas fa-trash-alt"></i>
                        </a>
                        {% endif %}
                        {% endif %}
                    </div>
                </div>
                
                <!-- Group information content -->
          