diff --git a/sapl/context_processors.py b/sapl/context_processors.py
index a84d77e3d..261d53842 100644
--- a/sapl/context_processors.py
+++ b/sapl/context_processors.py
@@ -1,5 +1,6 @@
import logging
+from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from sapl.utils import google_recaptcha_configured as google_recaptcha_configured_utils
@@ -32,3 +33,12 @@ def google_recaptcha_configured(request):
logger.warning(_('Google Recaptcha não configurado.'))
return {'google_recaptcha_configured': False}
return {'google_recaptcha_configured': True}
+
+
+def sapl_as_sapn(request):
+ return {
+ 'sapl_as_sapn': settings.SAPL_AS_SAPN,
+ 'nome_sistema': _('Sistema de Apoio ao Processo Legislativo')
+ if not settings.SAPL_AS_SAPN
+ else _('Sistema de Apoio a Publicação de Normas')
+ }
diff --git a/sapl/settings.py b/sapl/settings.py
index 9b4076042..5de6cdeb9 100644
--- a/sapl/settings.py
+++ b/sapl/settings.py
@@ -197,6 +197,7 @@ TEMPLATES = [
'sapl.context_processors.parliament_info',
'sapl.context_processors.mail_service_configured',
'sapl.context_processors.google_recaptcha_configured',
+ 'sapl.context_processors.sapl_as_sapn',
],
'debug': DEBUG
diff --git a/sapl/templates/base.html b/sapl/templates/base.html
index bfc59498c..9ba7983d6 100644
--- a/sapl/templates/base.html
+++ b/sapl/templates/base.html
@@ -90,7 +90,7 @@
{% if nome %}{{ nome }}{% else %}{% trans 'Câmara/Assembléia não configurada'%}{% endif %}
-
{% trans 'Sistema de Apoio ao Processo Legislativo' %}
+
{{nome_sistema}}
@@ -226,7 +226,7 @@
{% block webpack_loader_js %}
{% render_chunk_vendors 'js' %}
- {% render_bundle 'global' 'js' %}
+ {% render_bundle 'global' 'js' %}
{% endblock webpack_loader_js %}
{% block webpack_loader_chunks_js %}