liquid_feedback_frontend

annotate app/main/initiative/show.lua @ 716:a53b4485a3d3

Fixed preloading of initiative data for issue head
author bsw
date Wed Jun 27 12:31:14 2012 +0200 (2012-06-27)
parents 8af806af86a0
children cc64a4fc6ab6
rev   line source
bsw@527 1 local initiative = Initiative:by_id(param.get_id())
bsw@716 2 initiative:load_everything_for_member_id(app.session.member_id)
bsw/jbe@0 3
bsw@548 4 local issue = initiative.issue
bsw@548 5
bsw@548 6 if app.session.member_id then
bsw@548 7 issue:load_everything_for_member_id(app.session.member_id)
bsw@548 8 end
bsw@548 9
jorges@103 10 app.html_title.title = initiative.name
jorges@103 11 app.html_title.subtitle = _("Initiative ##{id}", { id = initiative.id })
jorges@103 12
bsw@526 13 slot.select("head", function()
bsw@526 14 execute.view{
bsw@527 15 module = "issue", view = "_head",
bsw@548 16 params = { issue = issue, initiative = initiative }
bsw@526 17 }
bsw@526 18 end)
bsw@526 19
bsw@278 20 execute.view{
bsw@278 21 module = "initiative",
bsw@278 22 view = "_show",
bsw@278 23 params = {
bsw@278 24 initiative = initiative,
bsw@278 25 initiator = initiator
bsw/jbe@19 26 }
bsw@278 27 }

Impressum / About Us