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@1045:   ui.title(_"Confirm notification address")
bsw@558: 
bsw@1045:   ui.section( function()
bsw@1045:     ui.sectionHead( function()
bsw@1045:       ui.heading{ level = 1, content = _"Notification address unconfirmed" }
bsw@1045:     end )
bsw@1045:     
bsw@1045:     ui.sectionRow( function()
bsw@1045:       if current then
bsw@1045:         ui.tag{
bsw@1045:           tag = "div",
bsw@1045:           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@1045:         }
bsw@1045:       else
bsw@1045:         ui.tag{
bsw@1045:           tag = "div",
bsw@1045:           content = _("You didn't confirm your email address '#{email}' within 7 days.", { email = app.session.member.notify_email_unconfirmed })
bsw@1045:         }
bsw@1045:       end
bsw@1045:       slot.put("
")
bsw@558: 
bsw@1045:       ui.link{
bsw@1045:         text = _"Change email address",
bsw@1045:         module = "member",
bsw@1045:         view = "settings_email",
bsw@1045:       }
bsw@1045:       slot.put("
")
bsw@1045:       slot.put("
")
bsw@558: 
bsw@1045:       ui.link{
bsw@1045:         text = _("Resend activation email to '#{email}'", { email = app.session.member.notify_email_unconfirmed }),
bsw@1045:         module = "member",
bsw@1045:         action = "update_email",
bsw@1045:         params = {
bsw@1045:           resend = true
bsw@1045:         },
bsw@1045:         routing = {
bsw@1045:           default = {
bsw@1045:             mode = "redirect",
bsw@1045:             module = "index",
bsw@1045:             view = "index"
bsw@1045:           }
bsw@1045:         }
bsw@558:       }
bsw@1045:     end )
bsw@1045:   end )
bsw@558: end