load js at the end of the page
authorRodney Ewing <ewing.rj@gmail.com>
Fri, 16 Aug 2013 18:49:33 +0000 (11:49 -0700)
committerRodney Ewing <ewing.rj@gmail.com>
Fri, 16 Aug 2013 18:49:33 +0000 (11:49 -0700)
mediagoblin/plugins/persona/__init__.py
mediagoblin/plugins/persona/templates/mediagoblin/plugins/persona/persona_js_end.html [moved from mediagoblin/plugins/persona/templates/mediagoblin/plugins/persona/persona_js_head.html with 100% similarity]
mediagoblin/templates/mediagoblin/base.html
mediagoblin/templates/mediagoblin/bits/body_end.html

index d74ba0d757bc4e93e6e18780698a20ea5a8f05e1..700c18e2398063ca14777aaf64cbd250d1b9603c 100644 (file)
@@ -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',
index 483b6dfa85e31aecd5d5fab6fde66ada95134fab..880274729893bbc726898250f75654a5beaf051a 100644 (file)
@@ -47,8 +47,6 @@
     {% include "mediagoblin/extra_head.html" %}
     {% template_hook("head") %}
 
-    {% template_hook("persona_head") %}
-
     {% block mediagoblin_head %}
     {% endblock mediagoblin_head %}
   </head>
index bb7b97629cd09a9a74050d59e59b5bbd3945e67e..c8f5e2d68801da2f5859d28db3f8f8d5f443f0b0 100644 (file)
@@ -15,3 +15,5 @@
 # You should have received a copy of the GNU Affero General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 -#}
+
+{% template_hook("persona_end") %}