missing link to add listing item

This commit is contained in:
byte[] 2020-01-01 13:56:09 -05:00
parent 0da19674d1
commit 574ff7d1d3

View file

@ -2,6 +2,9 @@
.block__header
span.block__header__title Available Items and Prices
= if current?(@user, @conn.assigns.current_user) do
= link "Add an item", to: Routes.profile_commission_item_path(@conn, :new, @user)
.block__content
= if not Enum.any?(@commission.items) do
@ -52,4 +55,4 @@
= link "Edit item", to: Routes.profile_commission_item_path(@conn, :edit, @user, item)
br
br
= link "Delete item", to: Routes.profile_commission_item_path(@conn, :delete, @user, item), data: [confirm: "Are you really, really sure?", method: :delete]
= link "Delete item", to: Routes.profile_commission_item_path(@conn, :delete, @user, item), data: [confirm: "Are you really, really sure?", method: :delete]