2019-12-04 15:04:25 +01:00
h1
' Link to
2020-11-26 21:21:24 +01:00
= link @artist_link.uri, to: @artist_link.uri
2019-12-04 15:04:25 +01:00
h3 Status
= cond do
2020-11-26 21:21:24 +01:00
- verified?(@artist_link) ->
2019-12-04 15:04:25 +01:00
p This link has been verified by a member of the administration team.
p You can now remove the verification text from your website if you have not done so already.
2020-11-26 21:21:24 +01:00
- contacted?(@artist_link) ->
2019-12-04 15:04:25 +01:00
p
strong This link is awaiting your reply on the linked website in order to be verified.
p
' An administrator
2020-11-26 21:21:24 +01:00
=> "(#{@artist_link.contacted_by_user.name})"
2019-12-04 15:04:25 +01:00
' has manually contacted you at the address above, as your verification code was not found on the website. Please respond to the message from the administrator to confirm your link.
p The verification code is:
p
code
2020-11-26 21:21:24 +01:00
h1 = @artist_link.verification_code
2019-12-04 15:04:25 +01:00
2020-11-26 21:21:24 +01:00
- link_verified?(@artist_link) ->
2019-12-04 15:04:25 +01:00
p
strong This link is pending verification by a member of the administration team.
p We've now found the verification code on your website. An administrator still needs to check the tag list before verifying the link. Please leave the code on your website until verification is complete.
p If you need it again, your verification code is:
p
code
2020-11-26 21:21:24 +01:00
h1 = @artist_link.verification_code
2019-12-04 15:04:25 +01:00
2020-11-26 21:21:24 +01:00
- unverified?(@artist_link) ->
2019-12-04 15:04:25 +01:00
p
strong This link is pending verification by a member of the administration team.
2020-11-26 20:46:15 +01:00
.dnp-warning
2020-12-02 19:27:53 +01:00
h3 To have your link verified as fast as possible, please place this text somewhere on the page you are linking.
code
2020-11-26 20:46:15 +01:00
h1 = @artist_link.verification_code
2019-12-04 15:04:25 +01:00
p Otherwise, an administrator will have to contact you to verify your identity.
p Once the link has been verified you can remove the text; the text simply allows the team to directly check with your website rather than messaging you and waiting for a reply.
2020-11-26 21:21:24 +01:00
- rejected?(@artist_link) ->
2019-12-04 15:04:25 +01:00
p This link has been rejected by a member of the administration team; this is probably because you were not reachable in a timely manner (~1 week) to verify the link.
h3 Visibility
2020-11-26 21:21:24 +01:00
= if public?(@artist_link) do
2019-12-04 15:04:25 +01:00
p This link is public, and will be shown around the site.
- else
p This link is not public, and will only be shown to administrators.
h3 Associated tag
2020-11-26 21:21:24 +01:00
= if @artist_link.tag do
2020-08-23 22:53:25 +02:00
.tag-list
2020-11-26 21:21:24 +01:00
= render PhilomenaWeb.TagView, "_tag.html", tag: @artist_link.tag, conn: @conn
2019-12-04 15:04:25 +01:00
- else
p There is no tag associated with this link.
2020-11-26 21:21:24 +01:00
= if can?(@conn, :index, Philomena.ArtistLinks.ArtistLink) do
2020-09-06 05:26:44 +02:00
p
2020-11-26 21:21:24 +01:00
=> link "Edit", to: Routes.profile_artist_link_path(@conn, :edit, @user, @artist_link)
2020-09-06 05:26:44 +02:00
' •
2020-11-26 21:21:24 +01:00
=> link "Verify", to: Routes.admin_artist_link_verification_path(@conn, :create, @artist_link), method: :post
2020-09-06 05:26:44 +02:00
' •
2020-11-26 21:21:24 +01:00
=> link "Reject", to: Routes.admin_artist_link_reject_path(@conn, :create, @artist_link), method: :post
= if not verified?(@artist_link) do
2020-09-06 05:26:44 +02:00
' •
2020-11-26 21:21:24 +01:00
= if contacted?(@artist_link) do
2020-09-06 05:26:44 +02:00
' Artist contacted
- else
2020-11-26 21:21:24 +01:00
= link "Artist contacted", to: Routes.admin_artist_link_contact_path(@conn, :create, @artist_link), method: :post
2020-09-06 05:26:44 +02:00
2020-11-26 21:21:24 +01:00
= link "Back", to: Routes.profile_artist_link_path(@conn, :index, @user)