From dc71d32313f27ebd5bb660c53ed6773496e20f30 Mon Sep 17 00:00:00 2001 From: Macartur Sousa Date: Thu, 3 Dec 2015 17:18:34 -0200 Subject: [PATCH] Using context_processors on header --- src/colab-spb-theme-plugin/colab_spb_theme/templates/footer.html | 2 +- src/colab-spb-theme-plugin/colab_spb_theme/templates/header.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 34722a5..ed0b6ef 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,4 +1,4 @@ -{% if 'sisp.gov.br' in request.META.HTTP_HOST|stringformat:"s" %} +{% if SISP_HOST in request.META.HTTP_HOST|stringformat:"s" %} {% include 'footer_sisp.html' %} {% else %} {% include 'footer_spb.html' %} 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 8aabcb5..c93e6bf 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,4 +1,4 @@ -{% if 'sisp.gov.br' in request.META.HTTP_HOST|stringformat:"s" %} +{% if SISP_URL in request.META.HTTP_HOST|stringformat:"s" %} {% include 'header_sisp.html' %} {% else %} {% include 'header_spb.html' %} -- libgit2 0.21.2