liquid_feedback_frontend

view app/main/member/_event_list.lua @ 1043:68d91f47bb98

Going to version 2.2.6
author bsw
date Thu Jul 10 01:02:36 2014 +0200 (2014-07-10)
parents 7dc5ab12bfe3
children
line source
1 local member = param.get("member", "table")
2 local events = param.get_all_cgi()["events"] or "personal"
4 ui.container{ attr = { class = "ui_filter" }, content = function()
5 ui.container{ attr = { class = "ui_filter_head" }, content = function()
7 ui.link{
8 attr = { class = events == "personal" and "ui_tabs_link active" or nil },
9 text = _"My areas and issues",
10 module = "index", view = "index", params = { tab = "timeline", events = "personal" }
11 }
13 slot.put(" ")
15 ui.link{
16 attr = { class = events == "global" and "active" or nil },
17 text = _"Everything",
18 module = "index", view = "index", params = { tab = "timeline", events = "global" }
19 }
20 end }
21 end }
23 if events == "personal" then
24 execute.view{
25 module = "event", view = "_list"
26 }
27 elseif events == "global" then
28 execute.view{
29 module = "event", view = "_list", params = { global = true }
30 }
31 end

Impressum / About Us