Improved motion catalog pdf for one/mutliple motions.

This commit is contained in:
Emanuel Schütze 2017-04-24 12:38:23 +02:00
parent 459356bf12
commit 4cd9d20435
2 changed files with 23 additions and 16 deletions

View File

@ -22,12 +22,6 @@ Motions:
- Bugfix: changing motion line length did not invalidate cache [#3202]
- Bugfix: Added more distance in motion PDF for DEL-tags in new lines [#3211].
Core:
- No reload on logoff. OpenSlides is now a full single page
application [#3172].
- Adding support for choosing image files as logos [#3184, #3207].
- Fixing error when clearing empty chat [#3199].
Users:
- User without permission to see users can now see agenda item speakers,
motion submitters and supporters, assignment candidates, mediafile
@ -37,6 +31,15 @@ Users:
e. g. for minimum password length [#3200].
- Fixed compare of duplicated users while csv user import [#3201].
Core:
- No reload on logoff. OpenSlides is now a full single page
application [#3172].
- Adding support for choosing image files as logos [#3184, #3207].
- Fixing error when clearing empty chat [#3199].
General:
- Several bugfixes and minor improvements.
Version 2.1.1 (2017-04-05)
==========================

View File

@ -177,7 +177,7 @@ angular.module('OpenSlidesApp.motions.pdf', ['OpenSlidesApp.core.pdf'])
}
// summary of change recommendations (for motion diff version only)
if (changeRecommendationMode == "diff") {
if (changeRecommendationMode == "diff" && changeRecommendations.length) {
var columnLineNumbers = [];
var columnChangeType = [];
angular.forEach(_.orderBy(changeRecommendations, ['line_from']), function(change) {
@ -580,14 +580,18 @@ angular.module('OpenSlidesApp.motions.pdf', ['OpenSlidesApp.core.pdf'])
motionContent.push(PDFLayout.addPageBreak());
}
});
return [
var content = [];
// print extra data (title, preamble, categories, toc) only for more than 1 motion
if (allMotions.length > 1) {
content.push(
title,
createPreamble(),
createTOCategories(),
createTOContent(),
motionContent
];
createTOContent()
);
}
content.push(motionContent);
return content;
};
return {
getContent: getContent