mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +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) ->
|
||||||
|
= if Enum.any?(@conn.assigns.user.verified_links) do
|
||||||
em
|
em
|
||||||
' You don't have any commission information listed yet.
|
' You don't have any commission information listed yet.
|
||||||
=> link "Click here", to: Routes.profile_commission_path(@conn, :new, @user)
|
=> link "Click here", to: Routes.profile_commission_path(@conn, :new, @user)
|
||||||
' to set it up.
|
' 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