# HG changeset patch
# User bsw
# Date 1533139518 -7200
# Node ID a0d6c347ce7fbd11869caa628712346bd4a8ee7e
# Parent cb5c83df949f6587ea56e74a6cfc70badbb9825f
Configureable text when rejected because of age
diff -r cb5c83df949f -r a0d6c347ce7f app/main/registration/register_rejected_age.lua
--- a/app/main/registration/register_rejected_age.lua Wed Aug 01 17:53:22 2018 +0200
+++ b/app/main/registration/register_rejected_age.lua Wed Aug 01 18:05:18 2018 +0200
@@ -4,15 +4,18 @@
ui.container{ attr = { class = "mdl-grid" }, content = function()
ui.container{ attr = { class = "mdl-cell mdl-cell--12-col" }, content = function()
- ui.heading{ content = _"Registration rejected" }
- slot.put("
")
- ui.container { content = function()
- ui.tag { content = _"Sorry, but you need to be at least 16 years old to participate. You can " }
- ui.link{ content = _"browse the platform as a guest", module = "index", view = "index" }
- ui.tag{ content = "." }
- end }
- slot.put("
")
-
+ if config.self_registration.rejected_age_text then
+ slot.put(config.self_registration.rejected_age_text)
+ else
+ ui.heading{ content = _"Registration rejected" }
+ slot.put("
")
+ ui.container { content = function()
+ ui.tag { content = _"Sorry, but you need to be at least 16 years old to participate. You can " }
+ ui.link{ content = _"browse the platform as a guest", module = "index", view = "index" }
+ ui.tag{ content = "." }
+ end }
+ slot.put("
")
+ end
end }
end }