diff --git a/rpg-docs/client/views/character/buffs/buffDialog/buffDialog.html b/rpg-docs/client/views/character/buffs/buffDialog/buffDialog.html index a7268141..d194ff85 100644 --- a/rpg-docs/client/views/character/buffs/buffDialog/buffDialog.html +++ b/rpg-docs/client/views/character/buffs/buffDialog/buffDialog.html @@ -18,5 +18,5 @@ {{/if}} {{> effectsViewList charId=charId parentId=_id}} {{> attacksViewList charId=charId parentId=_id}} - {{> proficienciesViewList charId=charId parentId=_id}} + {{> proficiencyViewList charId=charId parentId=_id}} diff --git a/rpg-docs/client/views/character/buffs/buffListItem/buffListItem.html b/rpg-docs/client/views/character/buffs/buffListItem/buffListItem.html new file mode 100644 index 00000000..dbef48eb --- /dev/null +++ b/rpg-docs/client/views/character/buffs/buffListItem/buffListItem.html @@ -0,0 +1,7 @@ + \ No newline at end of file diff --git a/rpg-docs/client/views/character/buffs/buffListItem/buffListItem.js b/rpg-docs/client/views/character/buffs/buffListItem/buffListItem.js new file mode 100644 index 00000000..e695af62 --- /dev/null +++ b/rpg-docs/client/views/character/buffs/buffListItem/buffListItem.js @@ -0,0 +1,17 @@ +Template.buffListItem.helpers({ + name: function() { + return this.buff.name + } +}); + +Template.buffListItem.events({ + "click .buffListItem": function(event){ + var buffId = this.buff._id; + var charId = this.buff.charId; + pushDialogStack({ + template: "buffDialog", + data: {buffId: buffId, charId: charId}, + element: event.currentTarget, + }); + }, +}); \ No newline at end of file diff --git a/rpg-docs/client/views/character/buffs/buffView/buffView.html b/rpg-docs/client/views/character/buffs/buffView/buffView.html deleted file mode 100644 index 27d3cdd4..00000000 --- a/rpg-docs/client/views/character/buffs/buffView/buffView.html +++ /dev/null @@ -1,7 +0,0 @@ - \ No newline at end of file diff --git a/rpg-docs/client/views/character/buffs/buffView/buffView.js b/rpg-docs/client/views/character/buffs/buffView/buffView.js deleted file mode 100644 index 359fde75..00000000 --- a/rpg-docs/client/views/character/buffs/buffView/buffView.js +++ /dev/null @@ -1,17 +0,0 @@ -Template.buffView.helpers({ - name: function() { - return this.name - } -}); - -Template.buffView.events({ - "click .buffView": function(event){ - var buffId = this._id; - var charId = Template.parentData()._id; - pushDialogStack({ - template: "buffDialog", - data: {buffId: buffId, charId: charId}, - element: event.currentTarget, - }); - }, -}); \ No newline at end of file diff --git a/rpg-docs/client/views/character/buffs/buffViewList/buffViewList.html b/rpg-docs/client/views/character/buffs/buffViewList/buffViewList.html index 9998abf1..720f7814 100644 --- a/rpg-docs/client/views/character/buffs/buffViewList/buffViewList.html +++ b/rpg-docs/client/views/character/buffs/buffViewList/buffViewList.html @@ -8,20 +8,22 @@ {{/if}}
- {{#each conditions}} - {{>buffView}} - {{/each}} - - {{#if buffs.count}} -
-
- Buffs -
- {{#each buffs}} - {{> buffView}} - {{/each}} +
+ {{#each conditions}} + {{>buffListItem}} + {{/each}} +
+ {{#if totalBuffs.count}} +
+
Buffs
+ View All
- {/if}} + {{/if}} +
+ {{#each buff in buffs}} + {{>buffListItem buff=buff}} + {{/each}} +