Commits

Andy Mikhailenko committed e39bb64

Added template filter "get_title" (to be used in <title> and/or <h1>).

  • Participants
  • Parent commits 4543539

Comments (0)

Files changed (3)

 ~$
 \.pyc$
+\.pyo$
 \.mo$
 ^\.directory$
 ^build/

navigation/__init__.py

 __author__  = 'Andy Mikhailenko'
 __license__ = 'GNU Lesser General Public License (GPL), Version 3'
 __url__     = 'http://bitbucket.org/neithere/django-navigation/'
-__version__ = '0.3.0'
+__version__ = '0.4.0'

navigation/templatetags/navigation_tags.py

     return trail
 
 @register.filter
+def get_title(request):
+    return find_crumb(request.path, request)
+
+@register.filter
 def get_sections(request):
     return _get_sections(request)