diff options
author | ayleph <ayleph@thisshitistemp.com> | 2016-02-02 23:14:57 -0500 |
---|---|---|
committer | Andrew Browning <ayleph@thisshitistemp.com> | 2017-01-15 20:50:34 -0500 |
commit | 2baad0435eace7b225c3e50a5d0710a8db747c7a (patch) | |
tree | 736fb4270e27e2231deab9c8398904b2caf10b9a | |
parent | 9924900d70613cd5dd0532e50d995033e0d39a4f (diff) | |
download | mediagoblin-2baad0435eace7b225c3e50a5d0710a8db747c7a.tar.lz mediagoblin-2baad0435eace7b225c3e50a5d0710a8db747c7a.tar.xz mediagoblin-2baad0435eace7b225c3e50a5d0710a8db747c7a.zip |
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.
-rw-r--r-- | mediagoblin/templates/mediagoblin/user_pages/media.html | 1 |
1 files changed, 1 insertions, 0 deletions
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 @@ <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')) %} |