liquid_feedback_frontend
view app/main/suggestion/show.lua @ 123:390bd09de226
add custom script slot
author | Daniel Poelzleithner <poelzi@poelzi.org> |
---|---|
date | Sun Sep 19 04:44:58 2010 +0200 (2010-09-19) |
parents | e0b091e2a0f3 |
children | 44ba79952610 |
line source
1 local suggestion = Suggestion:by_id(param.get_id())
3 app.html_title.title = suggestion.name
4 app.html_title.subtitle = _("Suggestion ##{id}", { id = suggestion.id })
6 slot.put_into("title", encode.html(_"Suggestion for initiative: '#{name}'":gsub("#{name}", suggestion.initiative.name) ))
8 slot.select("actions", function()
9 ui.link{
10 content = function()
11 ui.image{ static = "icons/16/resultset_previous.png" }
12 slot.put(_"Back")
13 end,
14 module = "initiative",
15 view = "show",
16 id = suggestion.initiative.id,
17 params = { tab = "suggestions" }
18 }
19 end)
21 execute.view{
22 module = "suggestion",
23 view = "show_tab",
24 params = {
25 suggestion = suggestion
26 }
27 }