mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
Adds check for user links for commission text
This commit is contained in:
parent
6944cf0054
commit
0dc6eb5b65
1 changed files with 10 additions and 4 deletions
|
@ -24,9 +24,15 @@
|
||||||
= link "More information", to: Routes.profile_commission_path(@conn, :show, @user)
|
= link "More information", to: Routes.profile_commission_path(@conn, :show, @user)
|
||||||
|
|
||||||
- current?(@user, @conn.assigns.current_user) ->
|
- current?(@user, @conn.assigns.current_user) ->
|
||||||
em
|
= if Enum.any?(@conn.assigns.user.verified_links) do
|
||||||
' You don't have any commission information listed yet.
|
em
|
||||||
=> link "Click here", to: Routes.profile_commission_path(@conn, :new, @user)
|
' You don't have any commission information listed yet.
|
||||||
' to set it up.
|
=> 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 ->
|
- true ->
|
||||||
|
|
Loading…
Reference in a new issue