liquid_feedback_frontend

view app/main/suggestion/show.lua @ 103:7d0f4721d2f3

setting <title> tag. fallback: take class="title"-contents
author jorges
date Mon Sep 20 01:18:03 2010 +0200 (2010-09-20)
parents 00d1004545f1
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 }

Impressum / About Us