liquid_feedback_frontend
view app/main/member/_event_list.lua @ 684:63c215764508
Optical improvements
| author | bsw | 
|---|---|
| date | Tue Jun 26 17:55:34 2012 +0200 (2012-06-26) | 
| 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
