liquid_feedback_frontend
annotate app/main/timeline/index.lua @ 144:7c3e8a1678fc
fix timeline saved filters
add Members:set_setting_map code
check for empty name
update settings when saved under same name
fixes bug #305
add Members:set_setting_map code
check for empty name
update settings when saved under same name
fixes bug #305
author | Daniel Poelzleithner <poelzi@poelzi.org> |
---|---|
date | Wed Oct 06 18:15:23 2010 +0200 (2010-10-06) |
parents | 53a45356c107 |
children | 90520c9fca44 |
rev | line source |
---|---|
bsw@11 | 1 execute.view{ |
bsw@11 | 2 module = "timeline", |
bsw@11 | 3 view = "_constants" |
bsw@11 | 4 } |
bsw@11 | 5 |
poelzi@144 | 6 local active_name = "" |
bsw@11 | 7 local options_box_count = param.get("options_box_count", atom.number) or 1 |
bsw@11 | 8 if options_box_count > 10 then |
bsw@11 | 9 options_box_count = 10 |
bsw@11 | 10 end |
bsw@10 | 11 |
bsw@10 | 12 local function format_dow(dow) |
bsw@10 | 13 local dows = { |
bsw@10 | 14 _"Monday", |
bsw@10 | 15 _"Tuesday", |
bsw@10 | 16 _"Wednesday", |
bsw@10 | 17 _"Thursday", |
bsw@10 | 18 _"Friday", |
bsw@10 | 19 _"Saturday", |
bsw@10 | 20 _"Sunday" |
bsw@10 | 21 } |
bsw@10 | 22 return dows[dow+1] |
bsw@10 | 23 end |
bsw@11 | 24 slot.put_into("title", _"Timeline") |
bsw@10 | 25 |
bsw@11 | 26 slot.select("actions", function() |
bsw@11 | 27 local setting_key = "liquidfeedback_frontend_timeline_current_options" |
bsw@11 | 28 local setting = Setting:by_pk(app.session.member.id, setting_key) |
bsw@11 | 29 local current_options = "" |
bsw@11 | 30 if setting then |
bsw@11 | 31 current_options = setting.value |
bsw@11 | 32 end |
bsw@11 | 33 local setting_maps = app.session.member:get_setting_maps_by_key("timeline_filters") |
bsw@11 | 34 for i, setting_map in ipairs(setting_maps) do |
bsw@11 | 35 local active |
bsw@11 | 36 local options_string = setting_map.value |
bsw@11 | 37 local name = setting_map.subkey |
bsw@11 | 38 if options_string == current_options then |
bsw@11 | 39 active = true |
poelzi@144 | 40 active_name = name |
bsw@11 | 41 end |
bsw@11 | 42 ui.link{ |
bsw/jbe@19 | 43 image = { static = "icons/16/time.png" }, |
bsw/jbe@19 | 44 attr = { class = active and "action_active" or nil }, |
bsw/jbe@19 | 45 text = name, |
bsw@11 | 46 module = 'timeline', |
bsw@11 | 47 action = 'update', |
bsw@11 | 48 params = { |
bsw@11 | 49 options_string = options_string |
bsw@11 | 50 }, |
bsw@11 | 51 } |
bsw@11 | 52 end |
bsw@11 | 53 if #setting_maps > 0 then |
bsw@11 | 54 ui.link{ |
bsw@11 | 55 content = function() |
bsw@11 | 56 ui.image{ static = "icons/16/wrench.png" } |
bsw@11 | 57 slot.put(_"Manage filter") |
bsw@11 | 58 end, |
bsw@11 | 59 module = "timeline", |
bsw@11 | 60 view = "list_filter", |
bsw@11 | 61 } |
bsw@11 | 62 end |
bsw@11 | 63 ui.link{ |
bsw@11 | 64 content = function() |
bsw@11 | 65 ui.image{ static = "icons/16/bullet_disk.png" } |
bsw@11 | 66 slot.put(_"Save current filter") |
bsw@11 | 67 end, |
bsw@11 | 68 module = "timeline", |
bsw@11 | 69 view = "save_filter", |
poelzi@144 | 70 params = { |
poelzi@144 | 71 current_name = active_name |
poelzi@144 | 72 }, |
bsw@11 | 73 attr = { |
bsw@11 | 74 onclick = "el=document.getElementById('timeline_save');el.checked=true;el.form.submit();return(false);" |
bsw@11 | 75 } |
bsw@11 | 76 } |
bsw@11 | 77 end) |
bsw@10 | 78 |
bsw@11 | 79 util.help("timeline.index", _"Timeline") |
bsw@10 | 80 |
bsw@10 | 81 ui.form{ |
bsw@10 | 82 module = "timeline", |
bsw@11 | 83 action = "update", |
bsw@10 | 84 content = function() |
bsw/jbe@19 | 85 ui.container{ |
bsw@11 | 86 |
bsw@11 | 87 content = function() |
bsw/jbe@19 | 88 |
bsw/jbe@19 | 89 ui.tag{ |
bsw/jbe@19 | 90 tag = "input", |
bsw/jbe@19 | 91 attr = { |
bsw/jbe@19 | 92 type = "radio", |
bsw/jbe@19 | 93 id = "timeline_search_last_24h", |
bsw/jbe@19 | 94 name = "search_from", |
bsw/jbe@19 | 95 value = "last_24h", |
bsw/jbe@19 | 96 checked = param.get("date") == "last_24h" and "checked" or nil |
bsw/jbe@19 | 97 }, |
bsw@11 | 98 } |
bsw/jbe@19 | 99 |
bsw/jbe@19 | 100 ui.tag{ |
bsw/jbe@19 | 101 tag = "label", |
bsw/jbe@19 | 102 attr = { |
bsw/jbe@19 | 103 ["for"] = "timeline_search_last_24h" |
bsw/jbe@19 | 104 }, |
bsw/jbe@19 | 105 content = " " .. _"last 24 hours" .. " " |
bsw/jbe@19 | 106 } |
bsw/jbe@19 | 107 |
bsw/jbe@19 | 108 ui.tag{ |
bsw/jbe@19 | 109 tag = "input", |
bsw/jbe@19 | 110 attr = { |
bsw/jbe@19 | 111 type = "radio", |
bsw/jbe@19 | 112 id = "timeline_search_from_date", |
bsw/jbe@19 | 113 name = "search_from", |
bsw/jbe@19 | 114 value = "date", |
bsw/jbe@19 | 115 checked = not (param.get("date") == "last_24h") and "checked" or nil |
bsw/jbe@19 | 116 }, |
bsw@11 | 117 } |
bsw@11 | 118 |
bsw/jbe@19 | 119 slot.put(" ") |
bsw/jbe@19 | 120 local current_date = param.get("date") |
bsw/jbe@19 | 121 if not current_date or #current_date == 0 or current_date == "last_24h" then |
bsw/jbe@19 | 122 current_date = tostring(db:query("select now()::date as date")[1].date) |
bsw/jbe@19 | 123 end |
bsw/jbe@19 | 124 ui.tag{ |
bsw/jbe@19 | 125 tag = "input", |
bsw/jbe@19 | 126 attr = { |
bsw/jbe@19 | 127 type = "text", |
bsw/jbe@19 | 128 id = "timeline_search_date", |
bsw/jbe@19 | 129 style = "width: 10em;", |
bsw/jbe@19 | 130 onchange = "this.form.submit();", |
bsw/jbe@19 | 131 onclick = "document.getElementById('timeline_search_from_date').checked = true;", |
bsw/jbe@19 | 132 name = "date", |
bsw/jbe@19 | 133 value = current_date |
bsw/jbe@19 | 134 }, |
bsw/jbe@19 | 135 content = function() end |
bsw/jbe@19 | 136 } |
bsw/jbe@19 | 137 |
bsw/jbe@19 | 138 ui.script{ static = "gregor.js/gregor.js" } |
bsw/jbe@19 | 139 util.gregor("timeline_search_date", "document.getElementById('timeline_search_date').form.submit();") |
bsw/jbe@19 | 140 |
bsw/jbe@19 | 141 |
bsw/jbe@19 | 142 ui.link{ |
bsw/jbe@19 | 143 attr = { style = "margin-left: 1em; font-weight: bold;", onclick = "document.getElementById('timeline_search_date').form.submit();return(false);" }, |
bsw/jbe@19 | 144 content = function() |
bsw/jbe@19 | 145 ui.image{ |
bsw/jbe@19 | 146 attr = { style = "margin-right: 0.25em;" }, |
bsw/jbe@19 | 147 static = "icons/16/magnifier.png" |
bsw/jbe@19 | 148 } |
bsw/jbe@19 | 149 slot.put(_"Search") |
bsw/jbe@19 | 150 end, |
bsw/jbe@19 | 151 external = "#", |
bsw/jbe@19 | 152 } |
bsw/jbe@19 | 153 local show_options = param.get("show_options", atom.boolean) |
bsw/jbe@19 | 154 ui.link{ |
bsw/jbe@19 | 155 attr = { style = "margin-left: 1em;", onclick = "el=document.getElementById('timeline_show_options');el.checked=" .. tostring(not show_options) .. ";el.form.submit();return(false);" }, |
bsw/jbe@19 | 156 content = function() |
bsw/jbe@19 | 157 ui.image{ |
bsw/jbe@19 | 158 attr = { style = "margin-right: 0.25em;" }, |
bsw/jbe@19 | 159 static = "icons/16/text_list_bullets.png" |
bsw/jbe@19 | 160 } |
bsw/jbe@19 | 161 slot.put(not show_options and _"Show filter details" or _"Hide filter details") |
bsw/jbe@19 | 162 end, |
bsw/jbe@19 | 163 external = "#", |
bsw/jbe@19 | 164 } |
bsw@11 | 165 |
bsw/jbe@19 | 166 ui.field.boolean{ |
bsw/jbe@19 | 167 attr = { id = "timeline_show_options", style = "display: none;", onchange="this.form.submit();" }, |
bsw/jbe@19 | 168 name = "show_options", |
bsw/jbe@19 | 169 value = param.get("show_options", atom.boolean) |
bsw/jbe@19 | 170 } |
poelzi@144 | 171 ui.hidden_field{ name = "current_name", value = active_name } |
bsw/jbe@19 | 172 ui.field.boolean{ |
bsw/jbe@19 | 173 attr = { id = "timeline_save", style = "display: none;", onchange="this.form.submit();" }, |
bsw/jbe@19 | 174 name = "save", |
bsw/jbe@19 | 175 value = false |
bsw/jbe@19 | 176 } |
bsw/jbe@19 | 177 |
bsw/jbe@19 | 178 end |
bsw@10 | 179 } |
bsw@11 | 180 |
bsw@11 | 181 ui.container{ |
bsw@11 | 182 attr = { |
bsw@11 | 183 id = "timeline_options_boxes", |
bsw@11 | 184 class = "vertical", |
bsw@11 | 185 style = not param.get("show_options", atom.boolean) and "display: none;" or nil |
bsw@10 | 186 }, |
bsw@11 | 187 content = function() |
bsw@11 | 188 |
bsw@11 | 189 local function option_field(event_ident, filter_ident) |
bsw@11 | 190 local param_name |
bsw@11 | 191 if not filter_ident then |
bsw@11 | 192 param_name = "option_" .. event_ident |
bsw@11 | 193 else |
bsw@11 | 194 param_name = "option_" .. event_ident .. "_" .. filter_ident |
bsw@11 | 195 end |
bsw@11 | 196 local value = param.get(param_name, atom.boolean) |
bsw@11 | 197 ui.field.boolean{ |
bsw@11 | 198 attr = { id = param_name }, |
bsw@11 | 199 name = param_name, |
bsw@11 | 200 value = value, |
bsw@11 | 201 } |
bsw@11 | 202 end |
bsw@11 | 203 |
bsw@11 | 204 local function filter_option_fields(event_ident, filter_idents) |
bsw@11 | 205 |
bsw@11 | 206 for i, filter_ident in ipairs(filter_idents) do |
bsw@11 | 207 slot.put("<td>") |
bsw@11 | 208 option_field(event_ident, filter_ident) |
bsw@11 | 209 slot.put("</td><td><div class='ui_field_label label_right'>") |
bsw@11 | 210 ui.tag{ |
bsw@11 | 211 attr = { ["for"] = "option_" .. event_ident .. "_" .. filter_ident }, |
bsw@11 | 212 tag = "label", |
bsw@11 | 213 content = filter_names[filter_ident] |
bsw@11 | 214 } |
bsw@11 | 215 slot.put("</div></td>") |
bsw@11 | 216 end |
bsw@11 | 217 |
bsw@11 | 218 end |
bsw@10 | 219 |
bsw@11 | 220 local event_groups = { |
bsw@11 | 221 { |
bsw@11 | 222 title = _"Issue events", |
bsw@11 | 223 event_idents = { |
bsw@11 | 224 "issue_created", |
bsw@11 | 225 "issue_canceled", |
bsw@11 | 226 "issue_accepted", |
bsw@11 | 227 "issue_half_frozen", |
bsw@11 | 228 "issue_finished_without_voting", |
bsw@11 | 229 "issue_voting_started", |
bsw@11 | 230 "issue_finished_after_voting", |
bsw@11 | 231 }, |
bsw@11 | 232 filter_idents = { |
bsw@11 | 233 "membership", |
bsw@11 | 234 "interested" |
bsw@11 | 235 } |
bsw@11 | 236 }, |
bsw@11 | 237 { |
bsw@11 | 238 title = _"Initiative events", |
bsw@11 | 239 event_idents = { |
bsw@11 | 240 "initiative_created", |
bsw@11 | 241 "initiative_revoked", |
bsw@11 | 242 "draft_created", |
bsw@11 | 243 "suggestion_created", |
bsw@11 | 244 }, |
bsw@11 | 245 filter_idents = { |
bsw@11 | 246 "membership", |
bsw@11 | 247 "interested", |
bsw@11 | 248 "supporter", |
bsw@11 | 249 "potential_supporter", |
bsw@11 | 250 "initiator" |
bsw@11 | 251 } |
bsw@11 | 252 } |
bsw@11 | 253 } |
bsw@11 | 254 |
bsw@11 | 255 slot.put("<table>") |
bsw@11 | 256 |
bsw@11 | 257 for i_event_group, event_group in ipairs(event_groups) do |
bsw@11 | 258 slot.put("<tr>") |
bsw@11 | 259 slot.put("<th colspan='2'>") |
bsw@11 | 260 slot.put(event_group.title) |
bsw@11 | 261 slot.put("</th><th colspan='10'>") |
bsw@11 | 262 slot.put(_"Show only events which match... (or associtated)") |
bsw@11 | 263 slot.put("</th>") |
bsw@11 | 264 slot.put("</tr>") |
bsw@11 | 265 local event_idents = event_group.event_idents |
bsw@11 | 266 for i, event_ident in ipairs(event_idents) do |
bsw@11 | 267 slot.put("<tr><td>") |
bsw@11 | 268 option_field(event_ident) |
bsw@11 | 269 slot.put("</td><td><div class='ui_field_label label_right'>") |
bsw@11 | 270 ui.tag{ |
bsw@11 | 271 attr = { ["for"] = "option_" .. event_ident }, |
bsw@11 | 272 tag = "label", |
bsw@11 | 273 content = event_names[event_ident] |
bsw@11 | 274 } |
bsw@11 | 275 slot.put("</div></td>") |
bsw@11 | 276 filter_option_fields(event_ident, event_group.filter_idents) |
bsw@11 | 277 slot.put("</tr>") |
bsw@11 | 278 end |
bsw@11 | 279 end |
bsw@11 | 280 |
bsw@11 | 281 slot.put("</table>") |
bsw@11 | 282 |
bsw@11 | 283 end |
bsw@10 | 284 } |
bsw@10 | 285 end |
bsw@10 | 286 } |
bsw@10 | 287 |
bsw@10 | 288 local date = param.get("date") |
bsw/jbe@19 | 289 |
bsw@11 | 290 if not date or #date == 0 then |
bsw@10 | 291 date = "today" |
bsw@10 | 292 end |
bsw@11 | 293 |
bsw@11 | 294 local timeline_selector |
bsw@11 | 295 |
bsw@11 | 296 for event, event_name in pairs(event_names) do |
bsw@11 | 297 |
bsw@11 | 298 if param.get("option_" .. event, atom.boolean) then |
bsw@11 | 299 |
bsw@11 | 300 local tmp = Timeline:new_selector() |
bsw/jbe@19 | 301 if event == "draft_created" then |
bsw/jbe@19 | 302 tmp |
bsw/jbe@19 | 303 :reset_fields() |
bsw/jbe@19 | 304 :add_field("max(timeline.occurrence)", "occurrence") |
bsw/jbe@19 | 305 :add_field("timeline.event", nil, { "grouped" }) |
bsw/jbe@19 | 306 :add_field("timeline.issue_id", nil, { "grouped" }) |
bsw@41 | 307 :add_field("draft.initiative_id", nil, { "grouped" }) |
bsw/jbe@19 | 308 :add_field("max(timeline.draft_id)", "draft_id") |
bsw/jbe@19 | 309 :add_field("timeline.suggestion_id", nil, { "grouped" }) |
bsw/jbe@19 | 310 :add_field("COUNT(*)", "count") |
bsw/jbe@19 | 311 else |
bsw/jbe@19 | 312 tmp |
bsw/jbe@19 | 313 :add_field("1", "count") |
bsw/jbe@19 | 314 end |
bsw@11 | 315 |
bsw/jbe@19 | 316 if date == "last_24h" then |
bsw/jbe@19 | 317 tmp:add_where{ "occurrence > now() - '24 hours'::interval" } |
bsw/jbe@19 | 318 else |
bsw/jbe@19 | 319 tmp:add_where{ "occurrence::date = ?::date", date } |
bsw/jbe@19 | 320 end |
bsw/jbe@19 | 321 tmp |
bsw/jbe@19 | 322 :left_join("draft", nil, "draft.id = timeline.draft_id") |
bsw/jbe@19 | 323 :left_join("suggestion", nil, "suggestion.id = timeline.suggestion_id") |
bsw/jbe@19 | 324 :left_join("initiative", nil, "initiative.id = timeline.initiative_id or initiative.id = draft.initiative_id or initiative.id = suggestion.initiative_id") |
bsw/jbe@19 | 325 :left_join("issue", nil, "issue.id = timeline.issue_id or issue.id = initiative.issue_id") |
bsw/jbe@19 | 326 :left_join("area", nil, "area.id = issue.area_id") |
bsw@11 | 327 |
bsw/jbe@19 | 328 :left_join("interest", "_interest", { "_interest.issue_id = issue.id AND _interest.member_id = ?", app.session.member.id} ) |
bsw/jbe@19 | 329 :left_join("initiator", "_initiator", { "_initiator.initiative_id = initiative.id AND _initiator.member_id = ?", app.session.member.id} ) |
bsw/jbe@19 | 330 :left_join("membership", "_membership", { "_membership.area_id = area.id AND _membership.member_id = ?", app.session.member.id} ) |
bsw/jbe@19 | 331 :left_join("supporter", "_supporter", { "_supporter.initiative_id = initiative.id AND _supporter.member_id = ?", app.session.member.id} ) |
bsw/jbe@19 | 332 |
bsw/jbe@19 | 333 local group |
bsw/jbe@19 | 334 if event == "draft_created" then |
bsw/jbe@19 | 335 group = { "grouped" } |
bsw/jbe@19 | 336 end |
bsw/jbe@19 | 337 |
bsw/jbe@19 | 338 tmp |
bsw/jbe@19 | 339 :add_field("(_interest.member_id NOTNULL)", "is_interested", group) |
bsw/jbe@19 | 340 :add_field("(_initiator.member_id NOTNULL)", "is_initiator", group) |
bsw/jbe@19 | 341 :add_field({"(_supporter.member_id NOTNULL) AND NOT EXISTS(SELECT NULL FROM opinion WHERE opinion.initiative_id = initiative.id AND opinion.member_id = ? AND ((opinion.degree = 2 AND NOT fulfilled) OR (opinion.degree = -2 AND fulfilled)) LIMIT 1)", app.session.member.id }, "is_supporter", group) |
bsw/jbe@19 | 342 :add_field({"EXISTS(SELECT NULL FROM opinion WHERE opinion.initiative_id = initiative.id AND opinion.member_id = ? AND ((opinion.degree = 2 AND NOT fulfilled) OR (opinion.degree = -2 AND fulfilled)) LIMIT 1)", app.session.member.id }, "is_potential_supporter", group) |
bsw/jbe@19 | 343 -- :left_join("member", nil, "member.id = timeline.member_id", group) |
bsw/jbe@19 | 344 |
bsw@11 | 345 |
bsw@11 | 346 tmp:add_where{ "event = ?", event } |
bsw@11 | 347 |
bsw@11 | 348 local filters = {} |
bsw@11 | 349 if param.get("option_" .. event .. "_membership", atom.boolean) then |
bsw@11 | 350 filters[#filters+1] = "(timeline.initiative_id ISNULL AND timeline.issue_id ISNULL AND timeline.draft_id ISNULL AND timeline.suggestion_id ISNULL) OR _membership.member_id NOTNULL" |
bsw@11 | 351 end |
bsw@11 | 352 |
bsw@11 | 353 if param.get("option_" .. event .. "_supporter", atom.boolean) then |
bsw@11 | 354 filters[#filters+1] = "(timeline.initiative_id ISNULL AND timeline.issue_id ISNULL AND timeline.draft_id ISNULL AND timeline.suggestion_id ISNULL) OR ((_supporter.member_id NOTNULL) AND NOT EXISTS(SELECT NULL FROM opinion WHERE opinion.initiative_id = initiative.id AND opinion.member_id = ? AND ((opinion.degree = 2 AND NOT fulfilled) OR (opinion.degree = -2 AND fulfilled)) LIMIT 1))" |
bsw@11 | 355 end |
bsw@11 | 356 |
bsw@11 | 357 if param.get("option_" .. event .. "_potential_supporter", atom.boolean) then |
bsw@11 | 358 filters[#filters+1] = "(timeline.initiative_id ISNULL AND timeline.issue_id ISNULL AND timeline.draft_id ISNULL AND timeline.suggestion_id ISNULL) OR ((_supporter.member_id NOTNULL) AND EXISTS(SELECT NULL FROM opinion WHERE opinion.initiative_id = initiative.id AND opinion.member_id = ? AND ((opinion.degree = 2 AND NOT fulfilled) OR (opinion.degree = -2 AND fulfilled)) LIMIT 1))" |
bsw@11 | 359 end |
bsw@10 | 360 |
bsw@11 | 361 if param.get("option_" .. event .. "_interested", atom.boolean) then |
bsw@11 | 362 filters[#filters+1] = "(timeline.initiative_id ISNULL AND timeline.issue_id ISNULL AND timeline.draft_id ISNULL AND timeline.suggestion_id ISNULL) OR _interest.member_id NOTNULL" |
bsw@11 | 363 end |
bsw@11 | 364 |
bsw@11 | 365 if param.get("option_" .. event .. "_initiator", atom.boolean) then |
bsw@11 | 366 filters[#filters+1] = "(timeline.initiative_id ISNULL AND timeline.issue_id ISNULL AND timeline.draft_id ISNULL AND timeline.suggestion_id ISNULL) OR _initiator.member_id NOTNULL" |
bsw@11 | 367 end |
bsw@11 | 368 |
bsw@11 | 369 if #filters > 0 then |
bsw@11 | 370 local filter_string = "(" .. table.concat(filters, ") OR (") .. ")" |
bsw/jbe@19 | 371 tmp:add_where{ filter_string, app.session.member.id, app.session.member.id } |
bsw@11 | 372 end |
bsw@11 | 373 |
bsw@11 | 374 if not timeline_selector then |
bsw@11 | 375 timeline_selector = tmp |
bsw@11 | 376 else |
bsw@11 | 377 timeline_selector:union_all(tmp) |
bsw@11 | 378 end |
bsw@11 | 379 end |
bsw@11 | 380 end |
bsw@11 | 381 |
bsw@11 | 382 if timeline_selector then |
bsw@11 | 383 |
bsw@11 | 384 local initiatives_per_page = param.get("initiatives_per_page", atom.number) |
bsw@11 | 385 |
bsw@11 | 386 local outer_timeline_selector = db:new_selector() |
bsw@11 | 387 outer_timeline_selector._class = Timeline |
bsw/jbe@19 | 388 outer_timeline_selector |
bsw/jbe@19 | 389 :add_field{ "timeline.*" } |
bsw/jbe@19 | 390 :from({"($)", { timeline_selector }}, "timeline" ) |
bsw/jbe@19 | 391 :add_order_by("occurrence DESC") |
bsw/jbe@19 | 392 |
bsw@11 | 393 slot.put("<br />") |
bsw@11 | 394 execute.view{ |
bsw@11 | 395 module = "timeline", |
bsw@11 | 396 view = "_list", |
bsw@11 | 397 params = { |
bsw@11 | 398 timeline_selector = outer_timeline_selector, |
bsw@11 | 399 per_page = param.get("per_page", atom.number), |
bsw@11 | 400 event_names = event_names, |
bsw@11 | 401 initiatives_per_page = initiatives_per_page |
bsw@11 | 402 } |
bsw@10 | 403 } |
bsw@11 | 404 |
bsw@11 | 405 else |
bsw@10 | 406 |
bsw@11 | 407 slot.put(_"No events selected to list") |
bsw@11 | 408 |
bsw@11 | 409 end |