From 41c5eb24f98fe97034227fde945f2edf04418983 Mon Sep 17 00:00:00 2001 From: Cesar Augusto de Carvalho Date: Wed, 3 Jul 2019 13:40:06 -0300 Subject: [PATCH] Fix #2660 - Esconde ultima votacao quando sessao e finalizada (#2862) --- sapl/painel/views.py | 1 + sapl/templates/painel/index.html | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/sapl/painel/views.py b/sapl/painel/views.py index e939e71bc..c79336937 100644 --- a/sapl/painel/views.py +++ b/sapl/painel/views.py @@ -603,6 +603,7 @@ def get_dados_painel(request, pk): 'sessao_plenaria_hora_inicio': sessao.hora_inicio, 'cronometros': dict_status_cronometros, 'sessao_solene': sessao.tipo.nome == "Solene", + 'sessao_finalizada': sessao.finalizada, 'tema_solene': sessao.tema_solene, 'status_painel': sessao.painel_aberto, 'brasao': brasao diff --git a/sapl/templates/painel/index.html b/sapl/templates/painel/index.html index 838a37a4f..9acc59042 100644 --- a/sapl/templates/painel/index.html +++ b/sapl/templates/painel/index.html @@ -300,7 +300,11 @@ audioAlertFinish.play(); } - if (data['materia_legislativa_texto']){ + if(data['sessao_finalizada']){ + $("#obs_materia_div").hide(); + $("#resultado_votacao_div").hide(); + } + else if (data['materia_legislativa_texto']){ if (data["status_painel"] == true){ $("#materia_legislativa_texto").text(data["materia_legislativa_texto"]); } else{