Merge pull request #3327 from FinnStutzenstein/configvalue-pdf-pagenumber-alignment

Configvalue for pagenumber alignment in PDF
This commit is contained in:
Emanuel Schütze 2017-07-27 11:02:15 +02:00 committed by GitHub
commit 9dca7fa3b6
5 changed files with 22 additions and 2 deletions

View File

@ -33,6 +33,7 @@ Motions:
on server side [#3304].
- Added config value for customize sorting of category list in
pdf/docx export [#3329].
- Added config value for pagenumber alignment in PDF [#3327].
Users:
- User without permission to see users can now see agenda item speakers,

View File

@ -115,6 +115,21 @@ def get_config_variables():
group='General',
subgroup='CSV')
# General export settings
yield ConfigVariable(
name='general_export_pdf_pagenumber_alignment',
default_value='center',
input_type='choice',
label='Pagenumber alignment in PDF',
choices=(
{'value': 'left', 'display_name': 'Left'},
{'value': 'center', 'display_name': 'Center'},
{'value': 'right', 'display_name': 'Right'}),
weight=146,
group='General',
subgroup='Export')
# Projector
yield ConfigVariable(

View File

@ -212,7 +212,7 @@ angular.module('OpenSlidesApp.core.pdf', [])
text: '{{currentPage}} / {{pageCount}}',
color: '#555',
fontSize: 9,
alignment: 'right',
alignment: Config.get('general_export_pdf_pagenumber_alignment').value,
margin: [0, 15, 0, 0],
});
return {

View File

@ -1883,6 +1883,10 @@ angular.module('OpenSlidesApp.core.site', [
gettext('Allow access for anonymous guest users');
gettext('Show this text on the login page');
gettext('Separator used for all csv exports and examples');
gettext('Pagenumber alignment in PDF');
gettext('Left');
gettext('Center');
gettext('Right');
gettext('Show logo on projector');
gettext('You can replace the logo by uploading an image and set it as ' +
'the "Projector logo" in "files".');

View File

@ -262,6 +262,6 @@ def get_config_variables():
choices=(
{'value': 'prefix', 'display_name': 'Prefix'},
{'value': 'name', 'display_name': 'Name'}),
weight=385,
weight=380,
group='Motions',
subgroup='Export')