X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/e224f0bea768179cf44886dfbabbd296767d79dd..03b16118bd180d3c09452174fd2d4546945d0c48:/catalogue/templatetags/catalogue_tags.py?ds=sidebyside diff --git a/catalogue/templatetags/catalogue_tags.py b/catalogue/templatetags/catalogue_tags.py index 43713ce0d..3c75801a7 100644 --- a/catalogue/templatetags/catalogue_tags.py +++ b/catalogue/templatetags/catalogue_tags.py @@ -107,6 +107,15 @@ def authentication_form(): return LoginForm(prefix='login').as_ul() +@register.inclusion_tag('catalogue/breadcrumbs.html') +def breadcrumbs(tags, search_form=True): + from wolnelektury.catalogue.forms import SearchForm + context = {'tag_list': tags} + if search_form: + context['search_form'] = SearchForm(tags=tags) + return context + + @register.tag def catalogue_url(parser, token): bits = token.split_contents()