liquid_feedback_frontend
diff app/main/suggestion/show.lua @ 113:e0b091e2a0f3
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 diff
1.1 --- a/app/main/suggestion/show.lua Sun Sep 19 16:00:38 2010 +0200 1.2 +++ b/app/main/suggestion/show.lua Mon Sep 20 01:18:03 2010 +0200 1.3 @@ -1,5 +1,8 @@ 1.4 local suggestion = Suggestion:by_id(param.get_id()) 1.5 1.6 +app.html_title.title = suggestion.name 1.7 +app.html_title.subtitle = _("Suggestion ##{id}", { id = suggestion.id }) 1.8 + 1.9 slot.put_into("title", encode.html(_"Suggestion for initiative: '#{name}'":gsub("#{name}", suggestion.initiative.name) )) 1.10 1.11 slot.select("actions", function() 1.12 @@ -21,4 +24,4 @@ 1.13 params = { 1.14 suggestion = suggestion 1.15 } 1.16 -} 1.17 \ No newline at end of file 1.18 +}