From: saksham1115 Date: Sat, 30 Jul 2016 18:48:24 +0000 (+0000) Subject: Renamed plugin from custom_subtitles to subtitles X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=067b1b071abd05a095ec184308cbace4dbab5a47;p=mediagoblin.git Renamed plugin from custom_subtitles to subtitles --- diff --git a/mediagoblin/plugins/custom_subtitles/__init__.py b/mediagoblin/plugins/subtitles/__init__.py similarity index 64% rename from mediagoblin/plugins/custom_subtitles/__init__.py rename to mediagoblin/plugins/subtitles/__init__.py index f2adc47b..75b0dbc4 100644 --- a/mediagoblin/plugins/custom_subtitles/__init__.py +++ b/mediagoblin/plugins/subtitles/__init__.py @@ -20,18 +20,18 @@ import os PLUGIN_DIR = os.path.dirname(__file__) def setup_plugin(): - config = pluginapi.get_config('mediagoblin.plugins.custom_subtitles') + config = pluginapi.get_config('mediagoblin.plugins.subtitles') routes = [ - ('mediagoblin.plugins.custom_subtitles.customize', + ('mediagoblin.plugins.subtitles.customize', '/u//m//customize/', - 'mediagoblin.plugins.custom_subtitles.views:custom_subtitles'), - ('mediagoblin.plugins.custom_subtitles.subtitles', + 'mediagoblin.plugins.subtitles.views:custom_subtitles'), + ('mediagoblin.plugins.subtitles.subtitles', '/u//m//subtitles/', - 'mediagoblin.plugins.custom_subtitles.views:edit_subtitles'), - ('mediagoblin.plugins.custom_subtitles.delete_subtitles', + 'mediagoblin.plugins.subtitles.views:edit_subtitles'), + ('mediagoblin.plugins.subtitles.delete_subtitles', '/u//m//delete/', - 'mediagoblin.plugins.custom_subtitles.views:delete_subtitles')] + 'mediagoblin.plugins.subtitles.views:delete_subtitles')] pluginapi.register_routes(routes) @@ -39,9 +39,9 @@ def setup_plugin(): pluginapi.register_template_path(os.path.join(PLUGIN_DIR, 'templates')) pluginapi.register_template_hooks( - {"customize_subtitles": "mediagoblin/plugins/custom_subtitles/custom_subtitles.html", - "add_subtitles": "mediagoblin/plugins/custom_subtitles/subtitles.html", - "subtitle_sidebar": "mediagoblin/plugins/custom_subtitles/subtitle_media_block.html"}) + {"customize_subtitles": "mediagoblin/plugins/subtitles/custom_subtitles.html", + "add_subtitles": "mediagoblin/plugins/subtitles/subtitles.html", + "subtitle_sidebar": "mediagoblin/plugins/subtitles/subtitle_media_block.html"}) diff --git a/mediagoblin/plugins/custom_subtitles/forms.py b/mediagoblin/plugins/subtitles/forms.py similarity index 100% rename from mediagoblin/plugins/custom_subtitles/forms.py rename to mediagoblin/plugins/subtitles/forms.py diff --git a/mediagoblin/plugins/custom_subtitles/models.py b/mediagoblin/plugins/subtitles/models.py similarity index 100% rename from mediagoblin/plugins/custom_subtitles/models.py rename to mediagoblin/plugins/subtitles/models.py diff --git a/mediagoblin/plugins/custom_subtitles/templates/mediagoblin/plugins/custom_subtitles/custom_subtitles.html b/mediagoblin/plugins/subtitles/templates/mediagoblin/plugins/subtitles/custom_subtitles.html similarity index 93% rename from mediagoblin/plugins/custom_subtitles/templates/mediagoblin/plugins/custom_subtitles/custom_subtitles.html rename to mediagoblin/plugins/subtitles/templates/mediagoblin/plugins/subtitles/custom_subtitles.html index e1975c75..2184b85e 100644 --- a/mediagoblin/plugins/custom_subtitles/templates/mediagoblin/plugins/custom_subtitles/custom_subtitles.html +++ b/mediagoblin/plugins/subtitles/templates/mediagoblin/plugins/subtitles/custom_subtitles.html @@ -28,14 +28,14 @@ request.staticdirect('/css/subtitles.css') }}" rel="stylesheet"> -
{{ wtforms_util.render_divs(form) }}
- {% set delete_url = request.urlgen('mediagoblin.plugins.custom_subtitles.delete_subtitles', + {% set delete_url = request.urlgen('mediagoblin.plugins.subtitles.delete_subtitles', user= media.get_actor.username, media_id=media.id, path=path) %} diff --git a/mediagoblin/plugins/custom_subtitles/templates/mediagoblin/plugins/custom_subtitles/subtitle_media_block.html b/mediagoblin/plugins/subtitles/templates/mediagoblin/plugins/subtitles/subtitle_media_block.html similarity index 93% rename from mediagoblin/plugins/custom_subtitles/templates/mediagoblin/plugins/custom_subtitles/subtitle_media_block.html rename to mediagoblin/plugins/subtitles/templates/mediagoblin/plugins/subtitles/subtitle_media_block.html index 3e6bf886..b516655a 100644 --- a/mediagoblin/plugins/custom_subtitles/templates/mediagoblin/plugins/custom_subtitles/subtitle_media_block.html +++ b/mediagoblin/plugins/subtitles/templates/mediagoblin/plugins/subtitles/subtitle_media_block.html @@ -23,7 +23,7 @@