liquid_feedback_frontend

diff app/main/member/settings_notification.lua @ 1250:84f6e17c7ceb

Completed support for new notification system
author bsw
date Sun Apr 17 15:03:44 2016 +0200 (2016-04-17)
parents c0fd12b97d65
children 1d645a8d20fc
line diff
     1.1 --- a/app/main/member/settings_notification.lua	Tue Apr 05 20:41:05 2016 +0200
     1.2 +++ b/app/main/member/settings_notification.lua	Sun Apr 17 15:03:44 2016 +0200
     1.3 @@ -1,4 +1,5 @@
     1.4  local return_to = param.get("return_to")
     1.5 +local return_to_area_id param.get("return_to_area_id", atom.integer)
     1.6  
     1.7  ui.titleMember(_"notification settings")
     1.8  
     1.9 @@ -15,9 +16,9 @@
    1.10    routing = {
    1.11      ok = {
    1.12        mode = "redirect",
    1.13 -      module = return_to == "home" and "index" or "member",
    1.14 -      view = return_to == "home" and "index" or "show",
    1.15 -      id = return_to ~= "home" and app.session.member_id or nil
    1.16 +      module = return_to == "area" and "area" or return_to == "home" and "index" or "member",
    1.17 +      view = return_to == "area" and "show" or return_to == "home" and "index" or "show",
    1.18 +      id = return_to == "area" and return_to_area_id or return_to ~= "home" and app.session.member_id or nil
    1.19      }
    1.20    },
    1.21    content = function()
    1.22 @@ -25,7 +26,7 @@
    1.23      ui.section( function()
    1.24  
    1.25        ui.sectionHead( function()
    1.26 -        ui.heading { level = 1, content = _"For which issue phases do you like to receive notification emails?" }
    1.27 +        ui.heading { level = 1, content = _"Do you like to receive updates by email?" }
    1.28        end )
    1.29  
    1.30      

Impressum / About Us