liquid_feedback_frontend

annotate 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
rev   line source
bsw/jbe@0 1 local suggestion = Suggestion:by_id(param.get_id())
bsw/jbe@0 2
jorges@113 3 app.html_title.title = suggestion.name
jorges@113 4 app.html_title.subtitle = _("Suggestion ##{id}", { id = suggestion.id })
jorges@113 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@113 27 }

Impressum / About Us