From: Eevee Date: Fri, 12 Nov 2010 05:51:45 +0000 (-0800) Subject: Add forums to link bar. #383 X-Git-Tag: veekun-promotions/2010112001^0 X-Git-Url: http://git.veekun.com/zzz-spline-forum.git/commitdiff_plain/535d7e4b216ef66de41d3ec591902ecc6154ad9b?ds=sidebyside Add forums to link bar. #383 --- 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),