diff --git a/digitalglarus/templates/language_chooser.html b/digitalglarus/templates/language_chooser.html index bf5ac078..33b8a6b4 100644 --- a/digitalglarus/templates/language_chooser.html +++ b/digitalglarus/templates/language_chooser.html @@ -1,9 +1,9 @@ {% load i18n menu_tags %} {% if languages|length > 1 %} -
+
diff --git a/ungleich/templates/cms/ungleichch/base_ungleich.html b/ungleich/templates/cms/ungleichch/base_ungleich.html index 6f70a4a8..30dfdeb9 100644 --- a/ungleich/templates/cms/ungleichch/base_ungleich.html +++ b/ungleich/templates/cms/ungleichch/base_ungleich.html @@ -36,10 +36,12 @@ {% render_block "css" postprocessor "compressor.contrib.sekizai.compress" %} + {% cms_toolbar %} {% show_menu 0 0 0 1 "cms/ungleichch/_menu.html" %} + {% block base_header %} {% include "cms/ungleichch/_header_base.html" %} {% endblock %} diff --git a/ungleich/views.py b/ungleich/views.py index 68179c3b..5e829693 100644 --- a/ungleich/views.py +++ b/ungleich/views.py @@ -1,3 +1,4 @@ +from django.conf import settings from django.shortcuts import render from django.utils.translation import get_language from djangocms_blog.models import Post @@ -8,7 +9,6 @@ from djangocms_blog.settings import get_setting def blog(request): posts = Post.objects.all() - print(posts) context = { 'post_list': posts } @@ -26,6 +26,9 @@ class PostListViewUngleich(PostListView): def get_context_data(self, **kwargs): context = super(PostListView, self).get_context_data(**kwargs) context['TRUNCWORDS_COUNT'] = get_setting('POSTS_LIST_TRUNCWORDS_COUNT') + context['languages'] = settings.LANGUAGES + context['current_language'] = get_language() + return context def get_paginate_by(self, queryset):