From 0cd6bb272c9a645da7934f2dac4f118acd57dbc3 Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Fri, 18 Mar 2016 22:00:50 +0100 Subject: [PATCH 1/4] Projector template improvements - Vertical centering event title (if no description available) - Fix sorting of main agenda item list. - Show countdowns side-by-side. Allow edit if countdown is running. --- openslides/agenda/static/js/agenda/projector.js | 5 ++++- openslides/core/static/css/projector.css | 14 +++++++------- .../static/templates/core/projector-controls.html | 3 +-- .../static/templates/core/slide_countdown.html | 2 +- openslides/core/static/templates/projector.html | 5 +++-- 5 files changed, 16 insertions(+), 13 deletions(-) diff --git a/openslides/agenda/static/js/agenda/projector.js b/openslides/agenda/static/js/agenda/projector.js index 759619c35..e680b7bf6 100644 --- a/openslides/agenda/static/js/agenda/projector.js +++ b/openslides/agenda/static/js/agenda/projector.js @@ -69,7 +69,10 @@ angular.module('OpenSlidesApp.agenda.projector', ['OpenSlidesApp.agenda']) } else if ($scope.element.tree) { $scope.items = AgendaTree.getFlatTree(Agenda.getAll()); } else { - $scope.items = $filter('filter')(Agenda.getAll(), {'parent_id': null}); + $scope.items = Agenda.filter({ + where: { parent_id: null }, + orderBy: 'weight' + }); } }); } diff --git a/openslides/core/static/css/projector.css b/openslides/core/static/css/projector.css index 90e024707..023bc01cd 100644 --- a/openslides/core/static/css/projector.css +++ b/openslides/core/static/css/projector.css @@ -51,7 +51,7 @@ body{ font-size: 24px; position: absolute; text-align: right; - top: 25px; + top: 23px; right: 50px; padding-left: 30px; } @@ -185,16 +185,16 @@ hr { /*** Overlay ***/ .countdown { min-width: 260px; - position: fixed; - margin: 0; - top: 90px; + position: relative; + margin: 0 0 10px 10px; + top: 0px; right: 0px; - padding: 23px 47px 0px 19px; + padding: 23px 45px 0px 19px; min-height: 72px; font-size: 3.7em; font-weight: bold; text-align: right; - border-radius: 7px 0 0 7px; + border-radius: 7px 7px 7px 7px; z-index: 200; font-family: "Roboto Condensed",Helvetica,Arial,sans-serif; } @@ -202,7 +202,7 @@ hr { font-weight: normal; font-size: 18px; margin-top: 20px; - padding-right: 5px; + padding-right: 6px; } .countdown.warning { color: #ed940d; diff --git a/openslides/core/static/templates/core/projector-controls.html b/openslides/core/static/templates/core/projector-controls.html index 085c94559..0565e5f68 100644 --- a/openslides/core/static/templates/core/projector-controls.html +++ b/openslides/core/static/templates/core/projector-controls.html @@ -85,8 +85,7 @@ -