bsw@558: if app.session.member.notify_email_unconfirmed then bsw@558: bsw@558: local current = Member:new_selector() bsw@558: :add_where{ "id = ?", app.session.member_id } bsw@558: :add_where("notify_email_unconfirmed NOTNULL") bsw@558: :add_where("notify_email_secret_expiry > now()") bsw@558: :optional_object_mode() bsw@558: :exec() bsw@558: bsw@564: slot.select("head", function() bsw@564: ui.container{ bsw@564: attr = { class = "title" }, bsw@564: content = _"Notification address unconfirmed" bsw@564: } bsw@558: end ) bsw@558: bsw@558: if current then bsw@558: ui.tag{ bsw@558: tag = "div", bsw@558: content = _("You didn't confirm your email address '#{email}'. You have received an email with an activation link.", { email = app.session.member.notify_email_unconfirmed }) bsw@558: } bsw@558: else bsw@558: ui.tag{ bsw@558: tag = "div", bsw@558: content = _("You didn't confirm your email address '#{email}' within 7 days.", { email = app.session.member.notify_email_unconfirmed }) bsw@558: } bsw@558: end bsw@558: slot.put("
") bsw@558: bsw@558: ui.link{ bsw@558: text = _"Change email address", bsw@558: module = "member", bsw@558: view = "settings_email", bsw@558: } bsw@558: slot.put("
") bsw@558: slot.put("
") bsw@558: bsw@558: ui.link{ bsw@558: text = _("Resend activation email to '#{email}'", { email = app.session.member.notify_email_unconfirmed }), bsw@558: module = "member", bsw@558: action = "update_email", bsw@558: params = { bsw@558: resend = true bsw@558: }, bsw@558: routing = { bsw@558: default = { bsw@558: mode = "redirect", bsw@558: module = "index", bsw@558: view = "index" bsw@558: } bsw@558: } bsw@558: } bsw@558: bsw@558: end