liquid_feedback_frontend
annotate app/main/suggestion/show.lua @ 141:20e0b64cc1f9
use monospace/pre data on suggestion display and entry
this allows better formatting on the user suggestions without the overhead of using wiki there
fixes bug #215
this allows better formatting on the user suggestions without the overhead of using wiki there
fixes bug #215
author | Daniel Poelzleithner <poelzi@poelzi.org> |
---|---|
date | Wed Oct 06 14:34:45 2010 +0200 (2010-10-06) |
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 } |