mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-17 11:04:22 +01:00
missing link to add listing item
This commit is contained in:
parent
0da19674d1
commit
574ff7d1d3
1 changed files with 4 additions and 1 deletions
|
@ -2,6 +2,9 @@
|
||||||
.block__header
|
.block__header
|
||||||
span.block__header__title Available Items and Prices
|
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
|
.block__content
|
||||||
|
|
||||||
= if not Enum.any?(@commission.items) do
|
= if not Enum.any?(@commission.items) do
|
||||||
|
@ -52,4 +55,4 @@
|
||||||
= link "Edit item", to: Routes.profile_commission_item_path(@conn, :edit, @user, item)
|
= link "Edit item", to: Routes.profile_commission_item_path(@conn, :edit, @user, item)
|
||||||
br
|
br
|
||||||
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]
|
||||||
|
|
Loading…
Reference in a new issue