From 65cb30452e36a6938402b228863922097fc56077 Mon Sep 17 00:00:00 2001 From: Thibault Duplessis Date: Thu, 23 Sep 2021 16:46:51 +0200 Subject: [PATCH] add link to DMCA form to report and contact pages --- app/views/report/form.scala | 11 +++++++++-- app/views/site/contact.scala | 7 ++++--- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/app/views/report/form.scala b/app/views/report/form.scala index 0717e01107..8d2dfbb3b3 100644 --- a/app/views/report/form.scala +++ b/app/views/report/form.scala @@ -26,8 +26,15 @@ object form { action := s"${routes.Report.create}${reqUser.??(u => "?username=" + u.username)}" )( div(cls := "form-group")( - a(href := routes.Page.loneBookmark("report-faq"), dataIcon := "", cls := "text")( - "Read more about Lichess reports" + p( + a(href := routes.Page.loneBookmark("report-faq"), dataIcon := "", cls := "text")( + "Read more about Lichess reports" + ) + ), + ctx.req.queryString.contains("postUrl") option p( + "Here for DMCA or Intellectual Property Take Down Notice? ", + a(href := views.html.site.contact.dmcaUrl)("Complete this form instead"), + "." ) ), form3.globalError(form), diff --git a/app/views/site/contact.scala b/app/views/site/contact.scala index 66261b074c..2f798cce72 100644 --- a/app/views/site/contact.scala +++ b/app/views/site/contact.scala @@ -343,9 +343,7 @@ object contact { "dmca", "DMCA / Intellectual Property Take Down Notice", p( - a( - href := "https://docs.google.com/forms/d/e/1FAIpQLSdRVaJ6Wk2KHcrLcY0BxM7lTwYSQHDsY2DsGwbYoLUBo3ngfQ/viewform" - )("Complete this form"), + a(href := dmcaUrl)("Complete this form"), " ", "if you are the original copyright holder, or an agent acting on behalf of the copyright holder, and believe Lichess is hosting work(s) you hold the copyright to." ) @@ -363,6 +361,9 @@ object contact { ) ) + val dmcaUrl = + "https://docs.google.com/forms/d/e/1FAIpQLSdRVaJ6Wk2KHcrLcY0BxM7lTwYSQHDsY2DsGwbYoLUBo3ngfQ/viewform" + def apply()(implicit ctx: Context) = page.layout( title = trans.contact.contact.txt(),