liquid_feedback_frontend

annotate app/main/member/_event_list.lua @ 414:699b9fa7bc36

Integrated new event system, splitted issues in open/closed, changed navigation
author bsw
date Sat Mar 10 16:57:49 2012 +0100 (2012-03-10)
parents
children 0a49a5268171
rev   line source
bsw@414 1 local member = param.get("member", "table")
bsw@414 2 local events = param.get_all_cgi()["events"] or "personal"
bsw@414 3
bsw@414 4 ui.container{ attr = { class = "ui_filter_head" }, content = function()
bsw@414 5
bsw@414 6 ui.link{
bsw@414 7 attr = { class = events == "personal" and "ui_tabs_link active" or nil },
bsw@414 8 text = _"Personal timeline",
bsw@414 9 module = "index", view = "index", params = { tab = "timeline", events = "personal" }
bsw@414 10 }
bsw@414 11
bsw@414 12 ui.link{
bsw@414 13 attr = { class = events == "global" and "active" or nil },
bsw@414 14 text = _"Global timeline",
bsw@414 15 module = "index", view = "index", params = { tab = "timeline", events = "global" }
bsw@414 16 }
bsw@414 17 end }
bsw@414 18
bsw@414 19 if events == "personal" then
bsw@414 20 execute.view{
bsw@414 21 module = "event", view = "_list"
bsw@414 22 }
bsw@414 23 elseif events == "global" then
bsw@414 24 execute.view{
bsw@414 25 module = "event", view = "_list", params = { global = true }
bsw@414 26 }
bsw@414 27 end

Impressum / About Us