liquid_feedback_frontend
view app/main/suggestion/show.lua @ 116:18fbd62e8595
initiative/show also calls issue/show -- thus fixed html_title setting
| author | jorges | 
|---|---|
| date | Fri Sep 24 14:49:36 2010 +0200 (2010-09-24) | 
| 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 }
