Adds check for user links for commission text

This commit is contained in:
Parasprite 2020-11-24 21:05:46 -06:00 committed by byte[]
parent 6944cf0054
commit 0dc6eb5b65

View file

@ -24,9 +24,15 @@
= link "More information", to: Routes.profile_commission_path(@conn, :show, @user)
- current?(@user, @conn.assigns.current_user) ->
= if Enum.any?(@conn.assigns.user.verified_links) do
em
' You don't have any commission information listed yet.
=> link "Click here", to: Routes.profile_commission_path(@conn, :new, @user)
' to set it up.
- else
em
' You must have a verified Artist Link to create a commission page.
=> link "Click here", to: Routes.profile_artist_link_path(@conn, :new, @user)
' to set one up.
- true ->