add link to DMCA form to report and contact pages

pull/9873/head
Thibault Duplessis 2021-09-23 16:46:51 +02:00
parent 7f092e07ac
commit 65cb30452e
2 changed files with 13 additions and 5 deletions

View File

@ -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),

View File

@ -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(),