Added basic printing functionality

This commit is contained in:
Stefan Zermatten
2017-07-03 12:25:07 +02:00
parent 0b8fabde14
commit 00a050d337
16 changed files with 505 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
Template.printedCharacterSheet.onRendered(function(){
// Quickfit is only called once on rendering, text will not resize reactively
this.$(".shrink-to-fit").quickfit({
min: 7,
max: 36,
truncate: true,
});
});
Template.printedCharacterSheet.helpers({
character(){
return Characters.findOne(this._id);
},
classes: function(){
return Classes.find({charId: this._id}, {sort: {createdAt: 1}});
},
});