bsw/jbe@19: local initiative = param.get("initiative", "table") bsw/jbe@4: bsw/jbe@19: if not initiative then bsw/jbe@19: initiative = Initiative:new_selector():add_where{ "id = ?", param.get_id()}:single_object_mode():exec() bsw@10: end bsw/jbe@0: jorges@103: app.html_title.title = initiative.name jorges@103: app.html_title.subtitle = _("Initiative ##{id}", { id = initiative.id }) jorges@103: jorges@103: bsw@278: execute.view{ bsw@278: module = "issue", bsw@525: view = "_head", bsw@278: params = { issue = initiative.issue, bsw@278: initiative = initiative } bsw@278: } bsw@278: bsw@278: if not initiative then bsw@278: initiative = Initiative:by_id(param.get_id()) bsw@278: expanded = true bsw@278: end bsw@278: bsw@278: -- TODO performance bsw@278: local initiator bsw@278: if app.session.member_id then bsw@278: initiator = Initiator:by_pk(initiative.id, app.session.member.id) bsw@278: end bsw@278: bsw@278: execute.view{ bsw@278: module = "initiative", bsw@278: view = "_show", bsw@278: params = { bsw@278: initiative = initiative, bsw@278: initiator = initiator bsw/jbe@19: } bsw@278: }