From: Rodney Ewing Date: Fri, 16 Aug 2013 18:49:33 +0000 (-0700) Subject: load js at the end of the page X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e7c08e3550d19691d989d48d8d499eb7b2b9f80a;p=mediagoblin.git load js at the end of the page --- diff --git a/mediagoblin/plugins/persona/__init__.py b/mediagoblin/plugins/persona/__init__.py index d74ba0d7..700c18e2 100644 --- a/mediagoblin/plugins/persona/__init__.py +++ b/mediagoblin/plugins/persona/__init__.py @@ -48,7 +48,7 @@ def setup_plugin(): pluginapi.register_routes(routes) pluginapi.register_template_path(os.path.join(PLUGIN_DIR, 'templates')) pluginapi.register_template_hooks( - {'persona_head': 'mediagoblin/plugins/persona/persona_js_head.html', + {'persona_end': 'mediagoblin/plugins/persona/persona_js_end.html', 'persona_form': 'mediagoblin/plugins/persona/persona.html', 'edit_link': 'mediagoblin/plugins/persona/edit_link.html', 'login_link': 'mediagoblin/plugins/persona/login_link.html', diff --git a/mediagoblin/plugins/persona/templates/mediagoblin/plugins/persona/persona_js_head.html b/mediagoblin/plugins/persona/templates/mediagoblin/plugins/persona/persona_js_end.html similarity index 100% rename from mediagoblin/plugins/persona/templates/mediagoblin/plugins/persona/persona_js_head.html rename to mediagoblin/plugins/persona/templates/mediagoblin/plugins/persona/persona_js_end.html diff --git a/mediagoblin/templates/mediagoblin/base.html b/mediagoblin/templates/mediagoblin/base.html index 483b6dfa..88027472 100644 --- a/mediagoblin/templates/mediagoblin/base.html +++ b/mediagoblin/templates/mediagoblin/base.html @@ -47,8 +47,6 @@ {% include "mediagoblin/extra_head.html" %} {% template_hook("head") %} - {% template_hook("persona_head") %} - {% block mediagoblin_head %} {% endblock mediagoblin_head %} diff --git a/mediagoblin/templates/mediagoblin/bits/body_end.html b/mediagoblin/templates/mediagoblin/bits/body_end.html index bb7b9762..c8f5e2d6 100644 --- a/mediagoblin/templates/mediagoblin/bits/body_end.html +++ b/mediagoblin/templates/mediagoblin/bits/body_end.html @@ -15,3 +15,5 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . -#} + +{% template_hook("persona_end") %}