liquid_feedback_frontend
annotate app/main/initiative/show.lua @ 700:a2d907f12dd8
Optical improvements
| author | bsw | 
|---|---|
| date | Tue Jun 26 19:40:29 2012 +0200 (2012-06-26) | 
| parents | 8af806af86a0 | 
| children | a53b4485a3d3 | 
| rev | line source | 
|---|---|
| bsw@527 | 1 local initiative = Initiative:by_id(param.get_id()) | 
| bsw/jbe@0 | 2 | 
| bsw@548 | 3 local issue = initiative.issue | 
| bsw@548 | 4 | 
| bsw@548 | 5 if app.session.member_id then | 
| bsw@548 | 6 issue:load_everything_for_member_id(app.session.member_id) | 
| bsw@548 | 7 end | 
| bsw@548 | 8 | 
| jorges@103 | 9 app.html_title.title = initiative.name | 
| jorges@103 | 10 app.html_title.subtitle = _("Initiative ##{id}", { id = initiative.id }) | 
| jorges@103 | 11 | 
| bsw@526 | 12 slot.select("head", function() | 
| bsw@526 | 13 execute.view{ | 
| bsw@527 | 14 module = "issue", view = "_head", | 
| bsw@548 | 15 params = { issue = issue, initiative = initiative } | 
| bsw@526 | 16 } | 
| bsw@526 | 17 end) | 
| bsw@526 | 18 | 
| bsw@278 | 19 execute.view{ | 
| bsw@278 | 20 module = "initiative", | 
| bsw@278 | 21 view = "_show", | 
| bsw@278 | 22 params = { | 
| bsw@278 | 23 initiative = initiative, | 
| bsw@278 | 24 initiator = initiator | 
| bsw/jbe@19 | 25 } | 
| bsw@278 | 26 } |