liquid_feedback_frontend
view app/main/member/_event_list.lua @ 434:5a4f5cc161d7
Put admin button to footer
author | bsw |
---|---|
date | Sun Mar 11 09:14:19 2012 +0100 (2012-03-11) |
parents | 0a49a5268171 |
children | 7717fd8b0308 |
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 = _"Personal timeline",
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 = _"Global timeline",
17 module = "index", view = "index", params = { tab = "timeline", events = "global" }
18 }
19 end }
21 if events == "personal" then
22 execute.view{
23 module = "event", view = "_list"
24 }
25 elseif events == "global" then
26 execute.view{
27 module = "event", view = "_list", params = { global = true }
28 }
29 end