liquid_feedback_frontend
view app/main/suggestion/show.lua @ 62:0e75b5f04fe5
Show motd only if available
| author | bsw | 
|---|---|
| date | Thu Apr 22 16:15:23 2010 +0200 (2010-04-22) | 
| parents | 00d1004545f1 | 
| children | 7d0f4721d2f3 | 
 line source
     1 local suggestion = Suggestion:by_id(param.get_id())
     3 slot.put_into("title", encode.html(_"Suggestion for initiative: '#{name}'":gsub("#{name}", suggestion.initiative.name) ))
     5 slot.select("actions", function()
     6   ui.link{
     7     content = function()
     8         ui.image{ static = "icons/16/resultset_previous.png" }
     9         slot.put(_"Back")
    10     end,
    11     module = "initiative",
    12     view = "show",
    13     id = suggestion.initiative.id,
    14     params = { tab = "suggestions" }
    15   }
    16 end)
    18 execute.view{
    19   module = "suggestion",
    20   view = "show_tab",
    21   params = {
    22     suggestion = suggestion
    23   }
    24 }
