diff options
author | David Gay <david@davidgay.org> | 2021-06-06 19:50:50 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-06-06 19:50:50 -0400 |
commit | 7521721651573a35f31a1c363b4bd0a9094a4851 (patch) | |
tree | 2db34a4e0df27b55f6b8697938c4ef81c30ca5e1 /app/views/characters | |
parent | 19cb44149e5c4d8be27afb948097b43b441adb0d (diff) |
Add currency section to new inventory view
Diffstat (limited to 'app/views/characters')
-rw-r--r-- | app/views/characters/items/index.html.erb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/characters/items/index.html.erb b/app/views/characters/items/index.html.erb index 8d0220b..af7b1ef 100644 --- a/app/views/characters/items/index.html.erb +++ b/app/views/characters/items/index.html.erb @@ -27,6 +27,10 @@ character_items: @character.character_items.ordered_by_item_name.select { |ci| ci.item.has_tag?("tool") } %> +<%= render "characters/items/inventory_section", heading: "Currency", + character_items: @character.character_items.ordered_by_item_name.select { |ci| + ci.item.has_tag?("currency") } %> + <%= render "characters/items/inventory_section", heading: "Consumables", character_items: @character.character_items.ordered_by_item_name.select { |ci| ci.item.usable? } %> |