# HG changeset patch # User bsw # Date 1533138772 -7200 # Node ID 00612e1ca36a4aaa97281af1b6151793b3c81c88 # Parent 39447c822336d6ed5f220b8c74862ecc38c59f9d Allow external registration cancel target diff -r 39447c822336 -r 00612e1ca36a app/main/registration/register.lua --- a/app/main/registration/register.lua Wed Aug 01 17:50:02 2018 +0200 +++ b/app/main/registration/register.lua Wed Aug 01 17:52:52 2018 +0200 @@ -81,6 +81,12 @@ } end slot.put("   ") + if config.self_registration.cancel_link then + ui.link{ + attr = { class = "mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--underlined" }, + external = config.self_registration.cancel_link, text = _"Cancel" + } + ui.link{ attr = { class = "mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--underlined" }, module = "index", view = "login", text = _"Cancel", params = {