Add media_titleinfo template hook

This patch is based on work by cmichi to add a template hook near the
media title section of the page. I rearranged the code in the original
patch to match the current media.html page.
This commit is contained in:
ayleph 2016-02-02 23:14:57 -05:00 committed by Andrew Browning
parent 9924900d70
commit 2baad0435e

View File

@ -75,6 +75,7 @@
<h2 class="media_title">
{{ media.title }}
</h2>
{% template_hook("media_titleinfo") %}
{% if request.user and
(media.actor == request.user.id or
request.user.has_privilege('admin')) %}