X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/13bee2f2e6aea2d936909861f3ab60bb09821a60..08948f69c835e27c0f90dea93d71901a5a62b0f5:/forum/registry.py?ds=sidebyside diff --git a/forum/registry.py b/forum/registry.py index ff5a115..aedf5b0 100644 --- a/forum/registry.py +++ b/forum/registry.py @@ -1,12 +1,19 @@ -from forum.modules import ui +from forum.modules import ui, get_modules_script from django.utils.translation import ugettext as _ from django.core.urlresolvers import reverse from django.template.defaultfilters import slugify +from django.template import get_templatetags_modules from forum.templatetags.extra_tags import get_score_badge from forum.utils.html import cleanup_urls from forum import settings +modules_template_tags = get_modules_script('templatetags') +django_template_tags = get_templatetags_modules() + +for m in modules_template_tags: + django_template_tags.append(m.__name__) + ui.register(ui.HEADER_LINKS, ui.Link(_('faq'), ui.Url('faq'), weight=400), ui.Link(_('about'), ui.Url('about'), weight=300),