From 2baad0435eace7b225c3e50a5d0710a8db747c7a Mon Sep 17 00:00:00 2001 From: ayleph Date: Tue, 2 Feb 2016 23:14:57 -0500 Subject: [PATCH] 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. --- mediagoblin/templates/mediagoblin/user_pages/media.html | 1 + 1 file changed, 1 insertion(+) 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')) %} -- 2.25.1