Preliminary additions
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<template name="buffViewList">
|
||||
{{if buffs.count}}
|
||||
<paper-material class="card">
|
||||
<div class="top white paper-font-subhead">
|
||||
Conditions
|
||||
</div>
|
||||
<div flex class="bottom list">
|
||||
{{#each buffs}}
|
||||
{{>buff}}
|
||||
{{/each}}
|
||||
</div>
|
||||
</paper-material>
|
||||
{{/if}}
|
||||
</template>
|
||||
@@ -0,0 +1,12 @@
|
||||
Template.buffViewList.helpers({
|
||||
buffs: function(){
|
||||
var selector = {
|
||||
"parent.id": this.parentId,
|
||||
"charId": this.charId,
|
||||
};
|
||||
if (this.parentGroup){
|
||||
selector["parent.group"] = this.parentGroup;
|
||||
}
|
||||
return Buffs.find(selector);
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user