liquid_feedback_frontend
view app/main/index/email_unconfirmed.lua @ 720:cdd0bcbbef8b
Improved paginators on initiative view, optical improvements
| author | bsw | 
|---|---|
| date | Wed Jun 27 19:28:39 2012 +0200 (2012-06-27) | 
| parents | 418b590fa9ed | 
| children | 701a5cf6b067 | 
 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("head", function()
    11     ui.container{
    12       attr = { class = "title" },
    13       content = _"Notification address unconfirmed"
    14     }
    15   end )
    17   if current then
    18     ui.tag{
    19       tag = "div",
    20       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 })
    21     }
    22   else
    23     ui.tag{
    24       tag = "div",
    25       content = _("You didn't confirm your email address '#{email}' within 7 days.", { email = app.session.member.notify_email_unconfirmed })
    26     }
    27   end
    28   slot.put("<br />")
    30   ui.link{
    31     text = _"Change email address",
    32     module = "member",
    33     view = "settings_email",
    34   }
    35   slot.put("<br />")
    36   slot.put("<br />")
    38   ui.link{
    39     text = _("Resend activation email to '#{email}'", { email = app.session.member.notify_email_unconfirmed }),
    40     module = "member",
    41     action = "update_email",
    42     params = {
    43       resend = true
    44     },
    45     routing = {
    46       default = {
    47         mode = "redirect",
    48         module = "index",
    49         view = "index"
    50       }
    51     }
    52   }
    54 end
