From 96f5122c006ed7489d8379a4be80841acb74b03e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Norman=20J=C3=A4ckel?= Date: Sat, 11 May 2013 00:20:42 +0200 Subject: [PATCH] Show category in motion table. Fix template when a motion has no category. --- openslides/motion/templates/motion/motion_detail.html | 6 +++++- openslides/motion/templates/motion/motion_list.html | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/openslides/motion/templates/motion/motion_detail.html b/openslides/motion/templates/motion/motion_detail.html index 10595e5ed..17d2bff82 100644 --- a/openslides/motion/templates/motion/motion_detail.html +++ b/openslides/motion/templates/motion/motion_detail.html @@ -233,7 +233,11 @@
{% trans "Category" %}:
- {{ motion.category }} + {% if motion.category %} + {{ motion.category }} + {% else %} + {% trans 'No category' %} + {% endif %}
{% trans "Creation Time" %}:
diff --git a/openslides/motion/templates/motion/motion_list.html b/openslides/motion/templates/motion/motion_list.html index 0276f58a1..6187b8ab0 100644 --- a/openslides/motion/templates/motion/motion_list.html +++ b/openslides/motion/templates/motion/motion_list.html @@ -53,6 +53,7 @@ {% trans "#" %} {% trans "Motion title" %} + {% trans 'Category' %} {% if min_supporters > 0 %} {% trans "Number of supporters" %} {% endif %} @@ -65,6 +66,7 @@ {{ motion.identifier|default:'' }} {{ motion.title }} + {% if motion.category %}{{ motion.category }}{% else %}{% trans 'No category' %}{% endif %} {% if min_supporters > 0 %} {# motion.count_supporters #} {% endif %}