liquid_feedback_frontend
view app/main/member/_event_list.lua @ 609:2ad52d0067eb
Show when member is locked
author | bsw |
---|---|
date | Sun Jun 24 23:26:44 2012 +0200 (2012-06-24) |
parents | 305329da1c75 |
children | 7dc5ab12bfe3 |
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_head" }, content = function()
6 ui.link{
7 attr = { class = events == "personal" and "ui_tabs_link active" or nil },
8 text = _"My areas and issues",
9 module = "index", view = "index", params = { tab = "timeline", events = "personal" }
10 }
12 slot.put(" ")
14 ui.link{
15 attr = { class = events == "global" and "active" or nil },
16 text = _"Everything",
17 module = "index", view = "index", params = { tab = "timeline", events = "global" }
18 }
19 end }
21 slot.put("<br />")
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