From: ayleph Date: Wed, 3 Feb 2016 04:14:57 +0000 (-0500) Subject: Add media_titleinfo template hook X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2baad0435eace7b225c3e50a5d0710a8db747c7a;p=mediagoblin.git 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. --- diff --git a/mediagoblin/templates/mediagoblin/user_pages/media.html b/mediagoblin/templates/mediagoblin/user_pages/media.html index ed3d1842..7278ad61 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/media.html +++ b/mediagoblin/templates/mediagoblin/user_pages/media.html @@ -75,6 +75,7 @@

{{ media.title }}

+ {% template_hook("media_titleinfo") %} {% if request.user and (media.actor == request.user.id or request.user.has_privilege('admin')) %}