From c72399ff9be106d3ef14dac6d27055d0789cfb07 Mon Sep 17 00:00:00 2001 From: FinnStutzenstein Date: Wed, 16 Aug 2017 11:45:24 +0200 Subject: [PATCH] Config for projector header and footer --- CHANGELOG | 1 + openslides/core/config_variables.py | 14 +++++++++++--- openslides/core/static/css/projector.css | 1 - openslides/core/static/js/core/site.js | 1 + openslides/core/static/templates/projector.html | 12 ++++++++++-- .../static/js/mediafiles/image-plugin.js | 2 +- 6 files changed, 24 insertions(+), 7 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 311af3106..61238a9bd 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -68,6 +68,7 @@ Core: - Added config value for standard font size in PDF [#3332]. - Added default sorting for agenda, motions, elections, mediafiles and users [#3334, 3348]. +- Added config for disabling header and footer in the projector [#3357]. Mediafiles: - Fixed reloading of PDF on page change [#3274]. diff --git a/openslides/core/config_variables.py b/openslides/core/config_variables.py index a689054ff..038cd6a7f 100644 --- a/openslides/core/config_variables.py +++ b/openslides/core/config_variables.py @@ -170,6 +170,14 @@ def get_config_variables(): weight=152, group='Projector') + yield ConfigVariable( + name='projector_enable_clock', + default_value=True, + input_type='boolean', + label='Show the clock on projector', + weight=154, + group='Projector') + yield ConfigVariable( name='projector_enable_title', default_value=True, @@ -179,11 +187,11 @@ def get_config_variables(): group='Projector') yield ConfigVariable( - name='projector_enable_clock', + name='projector_enable_header_footer', default_value=True, input_type='boolean', - label='Show the clock on projector', - weight=154, + label='Display header and footer', + weight=157, group='Projector') yield ConfigVariable( diff --git a/openslides/core/static/css/projector.css b/openslides/core/static/css/projector.css index b4fbf4531..2eb8262b0 100644 --- a/openslides/core/static/css/projector.css +++ b/openslides/core/static/css/projector.css @@ -156,7 +156,6 @@ body { .content { position: absolute; left: 50px; - top: 100px; right: 50px; z-index: -1; line-height: 1.3em; diff --git a/openslides/core/static/js/core/site.js b/openslides/core/static/js/core/site.js index e9681405c..947fea59a 100644 --- a/openslides/core/static/js/core/site.js +++ b/openslides/core/static/js/core/site.js @@ -1898,6 +1898,7 @@ angular.module('OpenSlidesApp.core.site', [ gettext('Projector language'); gettext('Current browser language'); gettext('Show title and description of event on projector'); + gettext('Display header and footer'); gettext('Show the clock on projector'); gettext('Background color of projector header and footer'); gettext('Font color of projector header and footer'); diff --git a/openslides/core/static/templates/projector.html b/openslides/core/static/templates/projector.html index 28196313a..5b799b01d 100644 --- a/openslides/core/static/templates/projector.html +++ b/openslides/core/static/templates/projector.html @@ -37,7 +37,7 @@ } -