Fix blog edit

This commit is contained in:
cuom1999 2023-01-21 12:51:45 -06:00
parent b9d0c9b0f9
commit 2259596ef7

View file

@ -30,7 +30,8 @@
</span>
{% if post.is_editable_by(request.user) %}
<span> [<a href="{{ url('admin:judge_blogpost_change', post.id) }}">{{ _('Edit') }}</a>]</span>
{% elif valid_user_to_show_edit %}
{% endif %}
{% if valid_user_to_show_edit %}
{% for org in valid_org_to_show_edit %}
<span> [<a href="{{ url('edit_organization_blog', org.id , org.slug , post.id) }}">{{ _('Edit in') }} {{org.slug}}</a>]</span>
{% endfor %}