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,14 @@
<template name="printedSquareStat">
<div class="printedSquareStat padded layout vertical center">
<div class="paper-font-subhead">
{{name}}
</div>
<div class="numbers paper-font-display1">
{{#if isSkill}}
{{prefix}}{{skillMod}}
{{else}}
{{prefix}}{{characterCalculate "attributeValue" ../_id stat}}
{{/if}}
</div>
</div>
</template>

View File

@@ -0,0 +1,9 @@
Template.printedSquareStat.helpers({
skillMod: function() {
return signedString(
Characters.calculate.skillMod(
Template.parentData()._id, this.stat
)
);
},
});