liquid_feedback_frontend
annotate app/main/suggestion/show.lua @ 135:02e24b4dd21c
fixes bug #50
make info clear that the user does not directly support a initiative but could support it by delegation
make info clear that the user does not directly support a initiative but could support it by delegation
| author | Daniel Poelzleithner <poelzi@poelzi.org> | 
|---|---|
| date | Tue Oct 05 21:14:54 2010 +0200 (2010-10-05) | 
| parents | 7d0f4721d2f3 | 
| children | 44ba79952610 | 
| rev | line source | 
|---|---|
| bsw/jbe@0 | 1 local suggestion = Suggestion:by_id(param.get_id()) | 
| bsw/jbe@0 | 2 | 
| jorges@103 | 3 app.html_title.title = suggestion.name | 
| jorges@103 | 4 app.html_title.subtitle = _("Suggestion ##{id}", { id = suggestion.id }) | 
| jorges@103 | 5 | 
| bsw/jbe@0 | 6 slot.put_into("title", encode.html(_"Suggestion for initiative: '#{name}'":gsub("#{name}", suggestion.initiative.name) )) | 
| bsw/jbe@0 | 7 | 
| bsw/jbe@6 | 8 slot.select("actions", function() | 
| bsw/jbe@6 | 9 ui.link{ | 
| bsw/jbe@6 | 10 content = function() | 
| bsw/jbe@6 | 11 ui.image{ static = "icons/16/resultset_previous.png" } | 
| bsw/jbe@6 | 12 slot.put(_"Back") | 
| bsw/jbe@6 | 13 end, | 
| bsw/jbe@6 | 14 module = "initiative", | 
| bsw/jbe@6 | 15 view = "show", | 
| bsw/jbe@6 | 16 id = suggestion.initiative.id, | 
| bsw/jbe@19 | 17 params = { tab = "suggestions" } | 
| bsw/jbe@6 | 18 } | 
| bsw/jbe@6 | 19 end) | 
| bsw/jbe@6 | 20 | 
| bsw/jbe@0 | 21 execute.view{ | 
| bsw/jbe@0 | 22 module = "suggestion", | 
| bsw/jbe@19 | 23 view = "show_tab", | 
| bsw/jbe@19 | 24 params = { | 
| bsw/jbe@19 | 25 suggestion = suggestion | 
| bsw/jbe@0 | 26 } | 
| jorges@103 | 27 } |