Skip to content

Commit

Permalink
Fix the title on AgendaDiaria view in case the name of the person in …
Browse files Browse the repository at this point in the history
…charge changes
  • Loading branch information
hvelarde committed Sep 24, 2018
1 parent 4904b36 commit dfbfbb9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ Changelog
Este release atualiza as dependências do processamento de recursos estáticos.
Em ambiente de desenvolvimento pode ser necessário remover as pastas ``parts`` e ``webpack/node_modules`` para efetivar a atualização de ambiente.

- Corrige título da agenda diária caso o nome da pessoa no cargo mudar (closes `#142 <https://github.com/plonegovbr/brasil.gov.agenda/issues/142>`_).
[hvelarde]

- Evita a emissão de source maps dos recursos estáticos.
[hvelarde]

Expand Down
7 changes: 0 additions & 7 deletions src/brasil/gov/agenda/browser/agendadiaria.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,6 @@ def compromissos(self):
compromissos.append(comp)
return compromissos

def TitleAgenda(self):
agenda = aq_parent(self.context)
title = agenda.title
if agenda.autoridade:
title += u' ' + agenda.autoridade
return title

def get_link_erros(self):
portal_obj = self.context.portal_url.getPortalObject()
if (hasattr(portal_obj, 'relatar-erros')):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<body>
<metal:slot metal:fill-slot="content-title">
<h1 class="documentFirstHeading"
tal:content="view/TitleAgenda"></h1>
tal:content="context/Title"></h1>
</metal:slot>
<metal:block fill-slot="content-core">
<div class="dados-agenda"
Expand Down

0 comments on commit dfbfbb9

Please sign in to comment.