diff --git a/apps/cms/contacts/templates/a4_candy_cms_contacts/form_page.html b/apps/cms/contacts/templates/a4_candy_cms_contacts/form_page.html index 5b5dbe3af..89bb0fb8a 100644 --- a/apps/cms/contacts/templates/a4_candy_cms_contacts/form_page.html +++ b/apps/cms/contacts/templates/a4_candy_cms_contacts/form_page.html @@ -1,4 +1,4 @@ -{% extends 'base_cms.html' %} +{% extends 'base.html' %} {% block content %}
diff --git a/apps/cms/contacts/templates/a4_candy_cms_contacts/form_page_landing.html b/apps/cms/contacts/templates/a4_candy_cms_contacts/form_page_landing.html index c6c297b7d..f16a75a7a 100644 --- a/apps/cms/contacts/templates/a4_candy_cms_contacts/form_page_landing.html +++ b/apps/cms/contacts/templates/a4_candy_cms_contacts/form_page_landing.html @@ -1,4 +1,4 @@ -{% extends 'base_cms.html' %} +{% extends 'base.html' %} {% load wagtailcore_tags %} {% block content %} diff --git a/apps/cms/news/templates/a4_candy_cms_news/news_index_page.html b/apps/cms/news/templates/a4_candy_cms_news/news_index_page.html index a886a425c..84ee93ce7 100644 --- a/apps/cms/news/templates/a4_candy_cms_news/news_index_page.html +++ b/apps/cms/news/templates/a4_candy_cms_news/news_index_page.html @@ -1,4 +1,4 @@ -{% extends "base_cms.html" %} +{% extends "base.html" %} {% load wagtailcore_tags %} {% block title %} diff --git a/apps/cms/news/templates/a4_candy_cms_news/news_page.html b/apps/cms/news/templates/a4_candy_cms_news/news_page.html index 890318a87..4bc4951bd 100644 --- a/apps/cms/news/templates/a4_candy_cms_news/news_page.html +++ b/apps/cms/news/templates/a4_candy_cms_news/news_page.html @@ -1,4 +1,4 @@ -{% extends "base_cms.html" %} +{% extends "base.html" %} {% load wagtailcore_tags wagtailimages_tags i18n %} {% block title %} diff --git a/apps/cms/pages/templates/a4_candy_cms_pages/home_page.html b/apps/cms/pages/templates/a4_candy_cms_pages/home_page.html index 8ba54c4ca..523c560bf 100644 --- a/apps/cms/pages/templates/a4_candy_cms_pages/home_page.html +++ b/apps/cms/pages/templates/a4_candy_cms_pages/home_page.html @@ -1,4 +1,4 @@ -{% extends "base_cms.html" %} +{% extends "base.html" %} {% load i18n wagtailcore_tags wagtailimages_tags %} {% block content %} diff --git a/apps/cms/pages/templates/a4_candy_cms_pages/simple_page.html b/apps/cms/pages/templates/a4_candy_cms_pages/simple_page.html index e51062f07..f9542b1af 100644 --- a/apps/cms/pages/templates/a4_candy_cms_pages/simple_page.html +++ b/apps/cms/pages/templates/a4_candy_cms_pages/simple_page.html @@ -1,4 +1,4 @@ -{% extends "base_cms.html" %} +{% extends "base.html" %} {% load wagtailcore_tags %} {% block title %}{% if self.seo_title %}{{ self.seo_title }}{% else %} diff --git a/apps/cms/use_cases/templates/a4_candy_cms_use_cases/use_case_index_page.html b/apps/cms/use_cases/templates/a4_candy_cms_use_cases/use_case_index_page.html index 47c4270e4..248453027 100644 --- a/apps/cms/use_cases/templates/a4_candy_cms_use_cases/use_case_index_page.html +++ b/apps/cms/use_cases/templates/a4_candy_cms_use_cases/use_case_index_page.html @@ -1,4 +1,4 @@ -{% extends "base_cms.html" %} +{% extends "base.html" %} {% load static wagtailcore_tags wagtailimages_tags i18n absolute_url %} {% block title %} diff --git a/apps/cms/use_cases/templates/a4_candy_cms_use_cases/use_case_page.html b/apps/cms/use_cases/templates/a4_candy_cms_use_cases/use_case_page.html index 634e4125e..6feb229dc 100644 --- a/apps/cms/use_cases/templates/a4_candy_cms_use_cases/use_case_page.html +++ b/apps/cms/use_cases/templates/a4_candy_cms_use_cases/use_case_page.html @@ -1,4 +1,4 @@ -{% extends "base_cms.html" %} +{% extends "base.html" %} {% load wagtailcore_tags wagtailimages_tags i18n absolute_url %} {% block title %} diff --git a/apps/users/templates/a4_candy_users/indicator.html b/apps/users/templates/a4_candy_users/indicator.html index 9d4e66d67..0992e5f73 100644 --- a/apps/users/templates/a4_candy_users/indicator.html +++ b/apps/users/templates/a4_candy_users/indicator.html @@ -3,16 +3,16 @@ {% if request.user.is_authenticated %} - + {% include 'includes/header_mobile_toggle.html' %}
diff --git a/liqd_product/templates/header_cms.html b/liqd_product/templates/header_cms.html deleted file mode 100644 index 783f91157..000000000 --- a/liqd_product/templates/header_cms.html +++ /dev/null @@ -1,39 +0,0 @@ -{% load userindicator static i18n thumbnail %} -{% get_current_language as LANGUAGE_CODE %} - -
-
- -
diff --git a/liqd_product/templates/header_dashboard.html b/liqd_product/templates/header_dashboard.html index d8c0b6d42..c64945d1b 100644 --- a/liqd_product/templates/header_dashboard.html +++ b/liqd_product/templates/header_dashboard.html @@ -1,35 +1,20 @@ {% load userindicator static i18n thumbnail %} {% get_current_language as LANGUAGE_CODE %} -
+
-
+
+
+ {% include 'includes/header_logo_link.html' %} +
diff --git a/liqd_product/templates/includes/header_language_switch.html b/liqd_product/templates/includes/header_language_switch.html new file mode 100644 index 000000000..175bfcd0b --- /dev/null +++ b/liqd_product/templates/includes/header_language_switch.html @@ -0,0 +1,20 @@ +{% load userindicator static i18n thumbnail %} +{% get_current_language as LANGUAGE_CODE %} + +
+ {% get_available_languages as languages %} + {% for lang_code, lang_name in languages %} + {% if lang_code != LANGUAGE_CODE %} + {% get_language_info for lang_code as lang %} +
{% csrf_token %} + + + {% if LANGUAGE_CODE == 'de' %} + de + {% else %} + en + {% endif %} +
+ {% endif %} + {% endfor %} +
diff --git a/liqd_product/templates/includes/header_logo_link.html b/liqd_product/templates/includes/header_logo_link.html new file mode 100644 index 000000000..e3cc9760f --- /dev/null +++ b/liqd_product/templates/includes/header_logo_link.html @@ -0,0 +1,13 @@ +{% load userindicator static i18n thumbnail %} + +{% spaceless %} + {% if ORGANISATION %} + + {{ ORGANISATION.name }} + + {% else %} + + Adhocracy+ + + {% endif %} +{% endspaceless %} diff --git a/liqd_product/templates/includes/header_mobile_toggle.html b/liqd_product/templates/includes/header_mobile_toggle.html new file mode 100644 index 000000000..cf26c1d6b --- /dev/null +++ b/liqd_product/templates/includes/header_mobile_toggle.html @@ -0,0 +1,5 @@ +{% load userindicator static i18n thumbnail %} + +