From b35ea2ea5be5c7e0cceefb4b9e9c3008ff7eccf2 Mon Sep 17 00:00:00 2001 From: FinnStutzenstein Date: Fri, 25 Aug 2017 14:59:03 +0200 Subject: [PATCH] New layout for agenda list slide, fixing long titles in agenda list view, fixing mediafiles in fullscreen (fixes #3369) --- .../agenda/static/js/agenda/projector.js | 12 +++++-- .../static/templates/agenda/item-list.html | 6 ++-- .../templates/agenda/slide-item-list.html | 31 +++++++++++++++---- openslides/core/static/css/app.css | 10 ++++++ openslides/core/static/css/projector.css | 15 ++++++++- 5 files changed, 62 insertions(+), 12 deletions(-) diff --git a/openslides/agenda/static/js/agenda/projector.js b/openslides/agenda/static/js/agenda/projector.js index d2d010691..82ee55244 100644 --- a/openslides/agenda/static/js/agenda/projector.js +++ b/openslides/agenda/static/js/agenda/projector.js @@ -77,6 +77,7 @@ angular.module('OpenSlidesApp.agenda.projector', ['OpenSlidesApp.agenda']) // class. // Bind agenda tree to the scope + var items; $scope.$watch(function () { return Agenda.lastModified(); }, function () { @@ -101,12 +102,19 @@ angular.module('OpenSlidesApp.agenda.projector', ['OpenSlidesApp.agenda']) $scope.items.push(item); } } else if ($scope.element.tree) { - $scope.items = AgendaTree.getFlatTree(Agenda.getAll()); + items = _.filter(Agenda.getAll(), function (item) { + return item.type === 1; + }); + $scope.tree = AgendaTree.getTree(items); } else { - $scope.items = Agenda.filter({ + items = Agenda.filter({ where: { parent_id: null }, orderBy: 'weight' }); + items = _.filter(items, function (item) { + return item.type === 1; + }); + $scope.tree = AgendaTree.getTree(items); } }); } diff --git a/openslides/agenda/static/templates/agenda/item-list.html b/openslides/agenda/static/templates/agenda/item-list.html index 7ebb14b1b..e448603e4 100644 --- a/openslides/agenda/static/templates/agenda/item-list.html +++ b/openslides/agenda/static/templates/agenda/item-list.html @@ -142,7 +142,7 @@ -
+
-
+
-
+
+ + + diff --git a/openslides/core/static/css/app.css b/openslides/core/static/css/app.css index 596b30286..4f4fc105f 100644 --- a/openslides/core/static/css/app.css +++ b/openslides/core/static/css/app.css @@ -1083,6 +1083,16 @@ img { padding: 5px 5px 5px 0; } +/** Agenda table **/ +#agenda-table .icon-column { + width: 5%; +} + +#agenda-table .title-column { + padding: 0px 10px; + width: 95%; +} + /** Mediafile table **/ #mediafile-table .icon-column { width: 10%; diff --git a/openslides/core/static/css/projector.css b/openslides/core/static/css/projector.css index 2eb8262b0..bc8d75012 100644 --- a/openslides/core/static/css/projector.css +++ b/openslides/core/static/css/projector.css @@ -170,7 +170,7 @@ body { } .fullscreen { position: fixed; - top: 0; + top: 0 !important; left: 0; width: 100%; height: 100%; @@ -389,6 +389,9 @@ tr.elected td { } /*** Agenda list ***/ +.agendalist { + line-height: 1.5em; +} .agendalist p { font-size: 140%; } @@ -406,6 +409,16 @@ tr.elected td { margin-top: 10px; } +.agendalist-table td { + vertical-align: top; + padding-left: 5px; +} + +.agendalist-table .number { + padding: 0; + white-space: nowrap; +} + /*** List of speakers ***/ .slimlabel.label {