Fix blog edit
This commit is contained in:
parent
b9d0c9b0f9
commit
2259596ef7
1 changed files with 3 additions and 2 deletions
|
@ -30,7 +30,8 @@
|
||||||
</span>
|
</span>
|
||||||
{% if post.is_editable_by(request.user) %}
|
{% if post.is_editable_by(request.user) %}
|
||||||
<span> [<a href="{{ url('admin:judge_blogpost_change', post.id) }}">{{ _('Edit') }}</a>]</span>
|
<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 %}
|
{% 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>
|
<span> [<a href="{{ url('edit_organization_blog', org.id , org.slug , post.id) }}">{{ _('Edit in') }} {{org.slug}}</a>]</span>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in a new issue