Language navigation

This commit is contained in:
Oleg Lavrovsky 2017-03-07 22:36:33 +01:00
parent 3a8ddd7afd
commit df7be31ee7
3 changed files with 2 additions and 1 deletions

View file

@ -5,7 +5,7 @@ from django.utils import translation
register = template.Library()
# Language switcher
@register.inclusion_tag('home/templates/tags/language.html', takes_context=True)
@register.inclusion_tag('tags/language.html', takes_context=True)
def language_switcher(context):
return {
'languages': [ { 'code': 'de', 'title': 'De' }, { 'code': 'fr', 'title': 'Fr' } ],

View file

@ -25,6 +25,7 @@ BASE_DIR = os.path.dirname(PROJECT_DIR)
INSTALLED_APPS = [
'publichealth.home',
'publichealth.home.templatetags',
'publichealth.search',
'wagtail.contrib.wagtailsearchpromotions',