adding a "join the FSF" button at the top of pages
[mediagoblin-libreplanet.git] / mediagoblin_libreplanet / __init__.py
index 2533be4793e37203d0f41be484a6a81a53787dbf..af39bdc1d945a5f9400c643dca3b9bec71f51b68 100644 (file)
@@ -18,7 +18,7 @@ import logging
 import os
 
 from mediagoblin import mg_globals
-from mediagoblin.tools.pluginapi import get_config, register_template_path, register_routes
+from mediagoblin.tools.pluginapi import get_config, register_template_path, register_routes, register_template_hooks
 from mediagoblin.db.models import MediaEntry
 from mediagoblin.db.util import media_entries_for_tag_slug
 from mediagoblin.tools.pagination import Pagination
@@ -109,3 +109,8 @@ hooks = {
     'setup': setup_plugin,
     'frontpage_view': frontpage_view_hook
 }
+
+register_template_hooks(
+    {'header_extra': "/mediagoblin/plugins/libreplanet/templates/libreplanet/join.html"}
+)
+