From 5d5e7c10f5b7993d08277188675586307041ba37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Norman=20J=C3=A4ckel?= Date: Mon, 16 Jul 2012 00:39:46 +0200 Subject: [PATCH] Change strings in agenda overview and agenda widget concerning application items --- openslides/agenda/templates/agenda/item_row.html | 11 +++++++++-- openslides/agenda/templates/agenda/widget.html | 12 +++++++++++- openslides/application/models.py | 2 +- 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/openslides/agenda/templates/agenda/item_row.html b/openslides/agenda/templates/agenda/item_row.html index b7bfe29a2..a318fb96a 100644 --- a/openslides/agenda/templates/agenda/item_row.html +++ b/openslides/agenda/templates/agenda/item_row.html @@ -20,8 +20,15 @@ {% if perms.agenda.can_manage_agenda %}
{% endif %} - {{ item }} - {% if item.related_sid %} + {{ item }} + {% if item.get_related_type == 'application' %} + ({% trans 'Application' %} + {% if item.get_related_slide.number %} + {{ item.get_related_slide.number }}) + {% else %} + [{% trans "no number" %}]) + {% endif %} + {% elif item.related_sid %} ({{ item.print_related_type }}) {% endif %} diff --git a/openslides/agenda/templates/agenda/widget.html b/openslides/agenda/templates/agenda/widget.html index 0df14acd9..18f6276c0 100644 --- a/openslides/agenda/templates/agenda/widget.html +++ b/openslides/agenda/templates/agenda/widget.html @@ -39,7 +39,17 @@ {% for p in item.get_ancestors %}   {% endfor %} - {{ item }}{% if item.related_sid %} ({{ item.print_related_type }}){% endif %} + {{ item }} + {% if item.get_related_type == 'application' %} + ({% trans 'Application' %} + {% if item.get_related_slide.number %} + {{ item.get_related_slide.number }}) + {% else %} + [{% trans "no number" %}]) + {% endif %} + {% elif item.related_sid %} + ({{ item.print_related_type }}) + {% endif %} {% empty %}
  • {% trans 'No items available.' %}
  • diff --git a/openslides/application/models.py b/openslides/application/models.py index cc585f231..a3cd3e2f0 100644 --- a/openslides/application/models.py +++ b/openslides/application/models.py @@ -434,7 +434,7 @@ class Application(models.Model, SlideMixin): self.save() def get_agenda_title(self): - return self.title + return self.public_version.title def __getattr__(self, name): """