From dd2519d74a710ba9d6b0d62a48fee83509b8cbf2 Mon Sep 17 00:00:00 2001 From: Edward <9326037+edwardoliveira@users.noreply.github.com> Date: Fri, 22 Nov 2019 15:14:09 -0300 Subject: [PATCH] =?UTF-8?q?"conserta"=20hor=C3=A1rio=20de=20ver=C3=A3o=20(?= =?UTF-8?q?#3040)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * "conserta" horário de verão * Endereçando as reviews --- sapl/painel/views.py | 5 ++++- sapl/templates/painel/index.html | 34 +++++++++++++++++++++----------- 2 files changed, 26 insertions(+), 13 deletions(-) diff --git a/sapl/painel/views.py b/sapl/painel/views.py index 4f1653269..8c332b7d7 100644 --- a/sapl/painel/views.py +++ b/sapl/painel/views.py @@ -290,7 +290,10 @@ def votante_view(request): @user_passes_test(check_permission) def painel_view(request, pk): - context = {'head_title': str(_('Painel Plenário')), 'sessao_id': pk} + now = timezone.localtime(timezone.now()) + utc_offset = now.utcoffset().total_seconds() / 60 + + context = {'head_title': str(_('Painel Plenário')), 'sessao_id': pk, 'utc_offset': utc_offset } return render(request, 'painel/index.html', context) diff --git a/sapl/templates/painel/index.html b/sapl/templates/painel/index.html index a7d08aeda..3df4d5861 100644 --- a/sapl/templates/painel/index.html +++ b/sapl/templates/painel/index.html @@ -33,7 +33,6 @@ } } -
@@ -110,7 +109,6 @@ - @@ -124,24 +122,36 @@ {% endblock webpack_loader_chunks_js %}