diff --git a/lib/philomena_web/templates/profile/commission/_listing_items.html.slime b/lib/philomena_web/templates/profile/commission/_listing_items.html.slime index 87e7a540..640ae10b 100644 --- a/lib/philomena_web/templates/profile/commission/_listing_items.html.slime +++ b/lib/philomena_web/templates/profile/commission/_listing_items.html.slime @@ -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] \ No newline at end of file + = link "Delete item", to: Routes.profile_commission_item_path(@conn, :delete, @user, item), data: [confirm: "Are you really, really sure?", method: :delete]