From 3af2d38d29c33de32b7578e4f01197f33b0b20e9 Mon Sep 17 00:00:00 2001 From: saksham1115 Date: Sat, 16 Jul 2016 00:07:58 +0000 Subject: [PATCH] Fixed media.html by using plugin hook --- .../mediagoblin/user_pages/media.html | 32 +------------------ 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/mediagoblin/templates/mediagoblin/user_pages/media.html b/mediagoblin/templates/mediagoblin/user_pages/media.html index 2ba561dd..d1f437d1 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/media.html +++ b/mediagoblin/templates/mediagoblin/user_pages/media.html @@ -229,37 +229,7 @@

{%- endif %} - {% if "video.html" in media.media_manager.display_template or "audio.html" in media.media_manager.display_template %} - {%- if media.subtitle_files|count %} -

{% trans %}Subtitles{% endtrans %}

- - {%- endif %} - {%- if app_config['allow_subtitles'] - and request.user - and (media.actor == request.user.id - or request.user.has_privilege('admin')) %} - {%- if not media.subtitle_files|count %} -

{% trans %}Subtitles{% endtrans %}

- {%- endif %} -

- - {%- trans %}Add subtitle {% endtrans -%} - -

- {%- endif %} - {% endif %} + {% template_hook("subtitle_sidebar") %} {% block mediagoblin_sidebar %} {% endblock %} -- 2.25.1