liquid_feedback_frontend
view app/main/index/email_unconfirmed.lua @ 1092:5b65ea5c24f5
Fixed free timings in poll mode
| author | bsw | 
|---|---|
| date | Fri Oct 17 13:03:31 2014 +0200 (2014-10-17) | 
| parents | 701a5cf6b067 | 
| children | ad1107fc0fbf | 
 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   ui.title(_"Confirm notification address")
    12   ui.section( function()
    13     ui.sectionHead( function()
    14       ui.heading{ level = 1, content = _"Notification address unconfirmed" }
    15     end )
    17     ui.sectionRow( function()
    18       if current then
    19         ui.tag{
    20           tag = "div",
    21           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 })
    22         }
    23       else
    24         ui.tag{
    25           tag = "div",
    26           content = _("You didn't confirm your email address '#{email}' within 7 days.", { email = app.session.member.notify_email_unconfirmed })
    27         }
    28       end
    29       slot.put("<br />")
    31       ui.link{
    32         text = _"Change email address",
    33         module = "member",
    34         view = "settings_email",
    35       }
    36       slot.put("<br />")
    37       slot.put("<br />")
    39       ui.link{
    40         text = _("Resend activation email to '#{email}'", { email = app.session.member.notify_email_unconfirmed }),
    41         module = "member",
    42         action = "update_email",
    43         params = {
    44           resend = true
    45         },
    46         routing = {
    47           default = {
    48             mode = "redirect",
    49             module = "index",
    50             view = "index"
    51           }
    52         }
    53       }
    54     end )
    55   end )
    56 end
