liquid_feedback_frontend

view app/main/index/email_unconfirmed.lua @ 562:051d0244c60f

Added tag v2.beta9 for changeset 12e504938643
author bsw
date Tue Jun 19 21:33:11 2012 +0200 (2012-06-19)
parents 18e8de7a2b6a
children 418b590fa9ed
line source
1 if app.session.member.notify_email_unconfirmed then
3 local current = Member:new_selector()
4 :add_where{ "id = ?", app.session.member_id }
5 :add_where("notify_email_unconfirmed NOTNULL")
6 :add_where("notify_email_secret_expiry > now()")
7 :optional_object_mode()
8 :exec()
10 slot.select("title", function()
11 ui.tag{ content = _"Notification address unconfirmed" }
12 end )
14 if current then
15 ui.tag{
16 tag = "div",
17 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 })
18 }
19 else
20 ui.tag{
21 tag = "div",
22 content = _("You didn't confirm your email address '#{email}' within 7 days.", { email = app.session.member.notify_email_unconfirmed })
23 }
24 end
25 slot.put("<br />")
27 ui.link{
28 text = _"Change email address",
29 module = "member",
30 view = "settings_email",
31 }
32 slot.put("<br />")
33 slot.put("<br />")
35 ui.link{
36 text = _("Resend activation email to '#{email}'", { email = app.session.member.notify_email_unconfirmed }),
37 module = "member",
38 action = "update_email",
39 params = {
40 resend = true
41 },
42 routing = {
43 default = {
44 mode = "redirect",
45 module = "index",
46 view = "index"
47 }
48 }
49 }
51 end

Impressum / About Us