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