liquid_feedback_frontend
diff app/main/initiative/show.lua @ 527:4cee33ad5e16
Completed support for config.public_access = "full"
author | bsw |
---|---|
date | Fri May 18 19:44:41 2012 +0200 (2012-05-18) |
parents | 18cd8595459b |
children | 8af806af86a0 |
line diff
1.1 --- a/app/main/initiative/show.lua Fri May 18 19:21:45 2012 +0200 1.2 +++ b/app/main/initiative/show.lua Fri May 18 19:44:41 2012 +0200 1.3 @@ -1,35 +1,15 @@ 1.4 -local initiative = param.get("initiative", "table") 1.5 - 1.6 -if not initiative then 1.7 - initiative = Initiative:new_selector():add_where{ "id = ?", param.get_id()}:single_object_mode():exec() 1.8 -end 1.9 +local initiative = Initiative:by_id(param.get_id()) 1.10 1.11 app.html_title.title = initiative.name 1.12 app.html_title.subtitle = _("Initiative ##{id}", { id = initiative.id }) 1.13 1.14 - 1.15 slot.select("head", function() 1.16 - 1.17 execute.view{ 1.18 - module = "issue", 1.19 - view = "_head", 1.20 - params = { issue = initiative.issue, 1.21 - initiative = initiative } 1.22 + module = "issue", view = "_head", 1.23 + params = { issue = initiative.issue, initiative = initiative } 1.24 } 1.25 - 1.26 end) 1.27 1.28 -if not initiative then 1.29 - initiative = Initiative:by_id(param.get_id()) 1.30 - expanded = true 1.31 -end 1.32 - 1.33 --- TODO performance 1.34 -local initiator 1.35 -if app.session.member_id then 1.36 - initiator = Initiator:by_pk(initiative.id, app.session.member.id) 1.37 -end 1.38 - 1.39 execute.view{ 1.40 module = "initiative", 1.41 view = "_show",