From 535d7e4b216ef66de41d3ec591902ecc6154ad9b Mon Sep 17 00:00:00 2001 From: Eevee Date: Thu, 11 Nov 2010 21:51:45 -0800 Subject: [PATCH] Add forums to link bar. #383 --- splinext/forum/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/splinext/forum/__init__.py b/splinext/forum/__init__.py index 806795a..8d2115a 100644 --- a/splinext/forum/__init__.py +++ b/splinext/forum/__init__.py @@ -1,6 +1,7 @@ from pkg_resources import resource_filename from pylons import session, tmpl_context as c +from routes import url_for as url from spline.lib.plugin import PluginBase from spline.lib.plugin import PluginBase, PluginLink, Priority @@ -28,6 +29,11 @@ class ForumPlugin(PluginBase): forum = splinext.forum.controllers.forum.ForumController, ) + def links(self): + return [ + PluginLink(u'Forums', url(controller='forum', action='forums')), + ] + def hooks(self): hooks = [ ('routes_mapping', Priority.NORMAL, add_routes_hook), -- 2.7.4