{% if has_permission('blog_post', 'delete', instance) %}
<a href="{{ url_for('delete_blog_post', uuid=instance.id, _next=request.path) }}">x</a>
{% endif %}