liquid_feedback_frontend

annotate app/main/suggestion/show.lua @ 127:4fb486bce608

add pageinator to issue view.

this "paginator" shows links to the prev/area/next issues that have the same
state then the current one. This helps a lot when inspecting new issues or voting.
The voting filter works a little bit different, as he also activtes the not_voted subfilter
because it is most likely only not voted issues are interessting to the user
author Daniel Poelzleithner <poelzi@poelzi.org>
date Tue Oct 05 04:44:06 2010 +0200 (2010-10-05)
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