diff --git a/painel/urls.py b/painel/urls.py index 77e9b7596..5729ce980 100644 --- a/painel/urls.py +++ b/painel/urls.py @@ -1,13 +1,15 @@ from django.conf.urls import include, url from .views import (controlador_painel, cronometro_painel_crud, json_presenca, - json_votacao, painel_parlamentares_view, painel_view, + json_votacao, paienl_mensagem_view, + painel_parlamentares_view, painel_view, painel_votacao_view) urlpatterns = [ url(r'^sistema/painel$', painel_view), url(r'^sistema/painel/controlador', controlador_painel, name='controlador_painel'), + url(r'^sistema/painel/mensagem', paienl_mensagem_view), url(r'^sistema/painel/parlamentares', painel_parlamentares_view), url(r'^sistema/painel/votacao', painel_votacao_view), url(r'^sistema/painel/json_presenca', json_presenca, name='json_presenca'), diff --git a/painel/views.py b/painel/views.py index a715565f1..e51e60a84 100644 --- a/painel/views.py +++ b/painel/views.py @@ -57,6 +57,10 @@ def painel_view(request): return render(request, 'painel/index.html', {'context': context}) +def paienl_mensagem_view(request): + return render(request, 'painel/mensagem.html') + + def painel_parlamentares_view(request): return render(request, 'painel/parlamentares.html') diff --git a/templates/painel/index.html b/templates/painel/index.html index 78743a80e..4b4885f23 100644 --- a/templates/painel/index.html +++ b/templates/painel/index.html @@ -97,9 +97,9 @@