diff --git a/sapl/painel/views.py b/sapl/painel/views.py index 7424ff0f5..74007193f 100644 --- a/sapl/painel/views.py +++ b/sapl/painel/views.py @@ -532,10 +532,13 @@ def get_presentes(pk, response, materia): tipo_votacao = 'Secreta' elif materia.tipo_votacao == 4: tipo_votacao = 'Leitura' + + ementa = materia.ementa if len(materia.ementa) < 320 else materia.ementa[:320] + '...' response.update({ 'tipo_resultado': materia.resultado, 'observacao_materia': html.unescape(materia.observacao), + 'materia_ementa' : ementa, 'tipo_votacao': tipo_votacao, 'materia_legislativa_texto': str(materia.materia) }) diff --git a/sapl/templates/painel/index.html b/sapl/templates/painel/index.html index 958d7df86..7aa5bf48b 100644 --- a/sapl/templates/painel/index.html +++ b/sapl/templates/painel/index.html @@ -101,6 +101,10 @@