liquid_feedback_frontend
diff app/main/timeline/_action/save.lua @ 11:77d58efe99fd
Version beta7
Important security fixes:
- Added missing HTML encoding to postal address of member
- Link to discussion URL only if it starts with http(s)://
Other bugfixes:
- Fixed wrong display of 2nd level delegating voters for an initiative
- Do not display invited initiators as initiators while voting
- Added missing translation
New features:
- Public message of the day
- Both direct and indirect supporter count is shown in tab heads
- Support shown in initiative lists
Language chooser at the login page has been added (again)
Important security fixes:
- Added missing HTML encoding to postal address of member
- Link to discussion URL only if it starts with http(s)://
Other bugfixes:
- Fixed wrong display of 2nd level delegating voters for an initiative
- Do not display invited initiators as initiators while voting
- Added missing translation
New features:
- Public message of the day
- Both direct and indirect supporter count is shown in tab heads
- Support shown in initiative lists
Language chooser at the login page has been added (again)
| author | bsw |
|---|---|
| date | Fri Jan 22 12:00:00 2010 +0100 (2010-01-22) |
| parents | |
| children | 7c3e8a1678fc |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/app/main/timeline/_action/save.lua Fri Jan 22 12:00:00 2010 +0100 1.3 @@ -0,0 +1,41 @@ 1.4 +local id = param.get("id", atom.number) 1.5 + 1.6 +local setting_key = "liquidfeedback_frontend_timeline_current_options" 1.7 +local setting = Setting:by_pk(app.session.member.id, setting_key) 1.8 +local options_string = setting.value 1.9 + 1.10 +local timeline_filter 1.11 + 1.12 +local subkey = param.get("name") 1.13 + 1.14 +setting_map = SettingMap:new() 1.15 +setting_map.member_id = app.session.member.id 1.16 +setting_map.key = "timeline_filters" 1.17 +setting_map.subkey = subkey 1.18 +setting_map.value = options_string 1.19 +setting_map:save() 1.20 + 1.21 +local timeline_params = {} 1.22 +if options_string then 1.23 + for event_ident, filter_idents in setting.value:gmatch("(%S+):(%S+)") do 1.24 + timeline_params["option_" .. event_ident] = true 1.25 + if filter_idents ~= "*" then 1.26 + for filter_ident in filter_idents:gmatch("([^\|]+)") do 1.27 + timeline_params["option_" .. event_ident .. "_" .. filter_ident] = true 1.28 + end 1.29 + end 1.30 + end 1.31 +end 1.32 + 1.33 +local setting_key = "liquidfeedback_frontend_timeline_current_date" 1.34 +local setting = Setting:by_pk(app.session.member.id, setting_key) 1.35 + 1.36 +if setting then 1.37 + timeline_params.date = setting.value 1.38 +end 1.39 + 1.40 +request.redirect{ 1.41 + module = "timeline", 1.42 + view = "index", 1.43 + params = timeline_params 1.44 +} 1.45 \ No newline at end of file