From aa30e99c1318a93cfe0ef1a6fc0435afa9e3f351 Mon Sep 17 00:00:00 2001 From: Alexandre Barbosa Date: Wed, 25 Nov 2015 16:13:12 -0200 Subject: [PATCH] Create multi theme structure --- src/colab-spb-theme-plugin/colab_spb_theme/templates/footer.html | 121 +++++-------------------------------------------------------------------------------------------------------------------- src/colab-spb-theme-plugin/colab_spb_theme/templates/footer_sisp.html | 116 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/colab-spb-theme-plugin/colab_spb_theme/templates/footer_spb.html | 116 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/colab-spb-theme-plugin/colab_spb_theme/templates/header.html | 171 +++++---------------------------------------------------------------------------------------------------------------------------------------------------------------------- src/colab-spb-theme-plugin/colab_spb_theme/templates/header_sisp.html | 154 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/colab-spb-theme-plugin/colab_spb_theme/templates/header_spb.html | 154 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 550 insertions(+), 282 deletions(-) create mode 100644 src/colab-spb-theme-plugin/colab_spb_theme/templates/footer_sisp.html create mode 100644 src/colab-spb-theme-plugin/colab_spb_theme/templates/footer_spb.html create mode 100644 src/colab-spb-theme-plugin/colab_spb_theme/templates/header_sisp.html create mode 100644 src/colab-spb-theme-plugin/colab_spb_theme/templates/header_spb.html diff --git a/src/colab-spb-theme-plugin/colab_spb_theme/templates/footer.html b/src/colab-spb-theme-plugin/colab_spb_theme/templates/footer.html index 506ee70..34722a5 100644 --- a/src/colab-spb-theme-plugin/colab_spb_theme/templates/footer.html +++ b/src/colab-spb-theme-plugin/colab_spb_theme/templates/footer.html @@ -1,116 +1,5 @@ -{% load i18n %} -{% load static from staticfiles %} - - +{% if 'sisp.gov.br' in request.META.HTTP_HOST|stringformat:"s" %} + {% include 'footer_sisp.html' %} +{% else %} + {% include 'footer_spb.html' %} +{% endif %} diff --git a/src/colab-spb-theme-plugin/colab_spb_theme/templates/footer_sisp.html b/src/colab-spb-theme-plugin/colab_spb_theme/templates/footer_sisp.html new file mode 100644 index 0000000..506ee70 --- /dev/null +++ b/src/colab-spb-theme-plugin/colab_spb_theme/templates/footer_sisp.html @@ -0,0 +1,116 @@ +{% load i18n %} +{% load static from staticfiles %} + + diff --git a/src/colab-spb-theme-plugin/colab_spb_theme/templates/footer_spb.html b/src/colab-spb-theme-plugin/colab_spb_theme/templates/footer_spb.html new file mode 100644 index 0000000..506ee70 --- /dev/null +++ b/src/colab-spb-theme-plugin/colab_spb_theme/templates/footer_spb.html @@ -0,0 +1,116 @@ +{% load i18n %} +{% load static from staticfiles %} + + diff --git a/src/colab-spb-theme-plugin/colab_spb_theme/templates/header.html b/src/colab-spb-theme-plugin/colab_spb_theme/templates/header.html index a2b61e5..8aabcb5 100644 --- a/src/colab-spb-theme-plugin/colab_spb_theme/templates/header.html +++ b/src/colab-spb-theme-plugin/colab_spb_theme/templates/header.html @@ -1,166 +1,5 @@ -{% load i18n gravatar plugins %} -{% load static from staticfiles %} - -
-
- - - -
-
- -{% block main_content %} - -{% endblock %} +{% if 'sisp.gov.br' in request.META.HTTP_HOST|stringformat:"s" %} + {% include 'header_sisp.html' %} +{% else %} + {% include 'header_spb.html' %} +{% endif %} diff --git a/src/colab-spb-theme-plugin/colab_spb_theme/templates/header_sisp.html b/src/colab-spb-theme-plugin/colab_spb_theme/templates/header_sisp.html new file mode 100644 index 0000000..5f22f0f --- /dev/null +++ b/src/colab-spb-theme-plugin/colab_spb_theme/templates/header_sisp.html @@ -0,0 +1,154 @@ +{% load i18n gravatar plugins %} +{% load static from staticfiles %} + +
+
+ + + +
+ +{% block main_content %} + +{% endblock %} diff --git a/src/colab-spb-theme-plugin/colab_spb_theme/templates/header_spb.html b/src/colab-spb-theme-plugin/colab_spb_theme/templates/header_spb.html new file mode 100644 index 0000000..5f22f0f --- /dev/null +++ b/src/colab-spb-theme-plugin/colab_spb_theme/templates/header_spb.html @@ -0,0 +1,154 @@ +{% load i18n gravatar plugins %} +{% load static from staticfiles %} + +
+
+ + + +
+ +{% block main_content %} + +{% endblock %} -- libgit2 0.21.2