From 1236fee7ee1280566bbec44d2b5d1c11aa9a1f62 Mon Sep 17 00:00:00 2001 From: FinnStutzenstein Date: Fri, 3 Nov 2017 10:05:40 +0100 Subject: [PATCH] Showing the number of next speakers in motion list view --- CHANGELOG | 3 ++- openslides/core/static/css/app.css | 3 +++ .../static/templates/motions/motion-detail.html | 8 ++++---- .../static/templates/motions/motion-list.html | 14 ++++++++++++-- 4 files changed, 21 insertions(+), 7 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 3e04e9d5c..25fd3784b 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -46,8 +46,9 @@ Motions: - New config options to hide reason and recommendation on projector [#3432]. - Show motion identifier in (current) list of speakers [#3442] - Added navigation between single motions [#3459]. -- Improved the multiselect state filter [#3459]. +- Improved the multiselect state filter [#3459]. - Added karma:watch command [#3466]. +- Show the number of next speakers in motion list view [#3470]. Elections: - Added pagination for list view [#3393]. diff --git a/openslides/core/static/css/app.css b/openslides/core/static/css/app.css index 105e55339..ef14f2f6f 100644 --- a/openslides/core/static/css/app.css +++ b/openslides/core/static/css/app.css @@ -1396,6 +1396,9 @@ img { .badge-info { background-color: #f0ad4e; } +.badge-success { + background-color: #5bb85b; +} .smallhr { margin-top: 5px; diff --git a/openslides/motions/static/templates/motions/motion-detail.html b/openslides/motions/static/templates/motions/motion-detail.html index 2c4e3c052..994a6794c 100644 --- a/openslides/motions/static/templates/motions/motion-detail.html +++ b/openslides/motions/static/templates/motions/motion-detail.html @@ -82,13 +82,13 @@
- + Motion {{ navigation.previousMotion.identifier }} - + Motion {{ navigation.nextMotion.identifier }} diff --git a/openslides/motions/static/templates/motions/motion-list.html b/openslides/motions/static/templates/motions/motion-list.html index 508c87378..8d32b56a8 100644 --- a/openslides/motions/static/templates/motions/motion-list.html +++ b/openslides/motions/static/templates/motions/motion-list.html @@ -625,7 +625,7 @@
-
+
0 ? '(' + (config('motions_min_supporters') - motion.supporters.length) + ' ' + ('needed' | translate) + ')': '' }}" tooltip-class="nobr"> + ng-class="motion.supporters.length < config('motions_min_supporters') ? 'badge-info' : 'badge-success'"> {{ motion.supporters.length }}
+
{{ motion.agenda_item.getItemNumberWithAncestors() }}