liquid_feedback_frontend
diff app/main/member/settings_notification.lua @ 1248:c0fd12b97d65
Changes on notifications system, newsletter support added
author | bsw |
---|---|
date | Tue Apr 05 20:40:37 2016 +0200 (2016-04-05) |
parents | 7b46738a9261 |
children | 84f6e17c7ceb |
line diff
1.1 --- a/app/main/member/settings_notification.lua Wed Jan 27 11:16:26 2016 +0100 1.2 +++ b/app/main/member/settings_notification.lua Tue Apr 05 20:40:37 2016 +0200 1.3 @@ -36,8 +36,8 @@ 1.4 tag = "input", 1.5 attr = { 1.6 id = "notify_level_all", 1.7 - type = "radio", name = "notify_level", value = "all", 1.8 - checked = app.session.member.notify_level == 'all' and "checked" or nil 1.9 + type = "radio", name = "disable_notifications", value = "false", 1.10 + checked = not app.session.member.disable_notifications and "checked" or nil 1.11 } 1.12 } 1.13 ui.tag{ 1.14 @@ -52,60 +52,9 @@ 1.15 ui.tag{ 1.16 tag = "input", 1.17 attr = { 1.18 - id = "notify_level_discussion", 1.19 - type = "radio", name = "notify_level", value = "discussion", 1.20 - checked = app.session.member.notify_level == 'discussion' and "checked" or nil 1.21 - } 1.22 - } 1.23 - ui.tag{ 1.24 - tag = "label", attr = { ['for'] = "notify_level_discussion" }, 1.25 - content = _"Only for issues reaching the discussion phase" 1.26 - } 1.27 - end } 1.28 - 1.29 - slot.put("<br />") 1.30 - 1.31 - ui.container{ content = function() 1.32 - ui.tag{ 1.33 - tag = "input", 1.34 - attr = { 1.35 - id = "notify_level_verification", 1.36 - type = "radio", name = "notify_level", value = "verification", 1.37 - checked = app.session.member.notify_level == 'verification' and "checked" or nil 1.38 - } 1.39 - } 1.40 - ui.tag{ 1.41 - tag = "label", attr = { ['for'] = "notify_level_verification" }, 1.42 - content = _"Only for issues reaching the verification phase" 1.43 - } 1.44 - end } 1.45 - 1.46 - slot.put("<br />") 1.47 - 1.48 - ui.container{ content = function() 1.49 - ui.tag{ 1.50 - tag = "input", 1.51 - attr = { 1.52 - id = "notify_level_voting", 1.53 - type = "radio", name = "notify_level", value = "voting", 1.54 - checked = app.session.member.notify_level == 'voting' and "checked" or nil 1.55 - } 1.56 - } 1.57 - ui.tag{ 1.58 - tag = "label", attr = { ['for'] = "notify_level_voting" }, 1.59 - content = _"Only for issues reaching the voting phase" 1.60 - } 1.61 - end } 1.62 - 1.63 - slot.put("<br />") 1.64 - 1.65 - ui.container{ content = function() 1.66 - ui.tag{ 1.67 - tag = "input", 1.68 - attr = { 1.69 id = "notify_level_none", 1.70 - type = "radio", name = "notify_level", value = "none", 1.71 - checked = app.session.member.notify_level == 'none' and "checked" or nil 1.72 + type = "radio", name = "disable_notifications", value = "true", 1.73 + checked = app.session.member.disable_notifications and "checked" or nil 1.74 } 1.75 } 1.76 ui.tag{ 1.77 @@ -116,11 +65,6 @@ 1.78 1.79 slot.put("<br />") 1.80 1.81 - ui.container { content = _"Notifications are only send to you about events in the subject areas you subscribed, the issues you are interested in and the initiatives you are supporting." } 1.82 - 1.83 - 1.84 - slot.put("<br />") 1.85 - 1.86 ui.tag{ 1.87 tag = "input", 1.88 attr = {