liquid_feedback_frontend

view app/main/initiative/show.lua @ 548:8af806af86a0

Added issue related preloading to issue show and initiative view
author bsw
date Tue May 29 20:45:58 2012 +0200 (2012-05-29)
parents 4cee33ad5e16
children a53b4485a3d3
line source
1 local initiative = Initiative:by_id(param.get_id())
3 local issue = initiative.issue
5 if app.session.member_id then
6 issue:load_everything_for_member_id(app.session.member_id)
7 end
9 app.html_title.title = initiative.name
10 app.html_title.subtitle = _("Initiative ##{id}", { id = initiative.id })
12 slot.select("head", function()
13 execute.view{
14 module = "issue", view = "_head",
15 params = { issue = issue, initiative = initiative }
16 }
17 end)
19 execute.view{
20 module = "initiative",
21 view = "_show",
22 params = {
23 initiative = initiative,
24 initiator = initiator
25 }
26 }

Impressum / About Us