liquid_feedback_frontend
view app/main/initiative/show.lua @ 278:fecd4c13054a
Code/css clean up and minor enhancements
| author | bsw | 
|---|---|
| date | Mon Feb 13 01:53:41 2012 +0100 (2012-02-13) | 
| parents | 7d0f4721d2f3 | 
| children | 63d6549cc00b | 
 line source
     1 local initiative = param.get("initiative", "table")
     3 if not initiative then
     4   initiative = Initiative:new_selector():add_where{ "id = ?", param.get_id()}:single_object_mode():exec()
     5 end
     7 app.html_title.title = initiative.name
     8 app.html_title.subtitle = _("Initiative ##{id}", { id = initiative.id })
    11 execute.view{
    12   module = "issue",
    13   view = "_show_head",
    14   params = { issue = initiative.issue,
    15              initiative = initiative }
    16 }
    18 if not initiative then
    19   initiative = Initiative:by_id(param.get_id())
    20   expanded = true
    21 end
    23 -- TODO performance
    24 local initiator
    25 if app.session.member_id then
    26   initiator = Initiator:by_pk(initiative.id, app.session.member.id)
    27 end
    29 execute.view{
    30   module = "initiative",
    31   view = "_show",
    32   params = {
    33     initiative = initiative,
    34     initiator = initiator
    35   }
    36 }
