Skip to content

Commit

Permalink
Pridaný link pre administráciu postu, closes #152
Browse files Browse the repository at this point in the history
  • Loading branch information
mireq committed Jul 10, 2021
1 parent 81480c1 commit 5c649e3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions templates/blog/post_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@
{% include "blog/partials/informations.html" %}
{% endwith %}

<ul class="object-tools btn-group">
{% if user.is_staff and perms.blog.change_post %}
<li class="btn"><span class="wrap"><a href="{{ url("admin:blog_post_change", post.pk) }}" class="text">Admin</a></span></li>
{% endif %}
{% if post.author == user %}
<li class="btn"><span class="wrap"><a href="{{ url("blog:post-update", post.blog.slug, post.slug) }}" class="text">Upraviť</a></span></li>
{% endif %}
</ul>

<h1>{{ object }}</h1>

<div class="info">
Expand Down

0 comments on commit 5c649e3

Please sign in to comment.