liquid_feedback_frontend
annotate app/main/index/search.lua @ 24:81586ea68d57
Minor bugfixes
app/main/initiative/_list.lua:
Replaced single by optional object mode
locale/translations.de.lua:
Consistent translation
app/main/initiative/_show.lua:
Added missing case "not approved" in voting info box
app/main/initiative/_show_voting.lua:
Added link to initiative
app/main/initiative/_show_voting.lua:
Added missing argument for link
app/main/member/show_tab.lua:
Added outgoing argument to show outgoing delegations correctly
app/main/initiative/_list.lua:
Replaced single by optional object mode
locale/translations.de.lua:
Consistent translation
app/main/initiative/_show.lua:
Added missing case "not approved" in voting info box
app/main/initiative/_show_voting.lua:
Added link to initiative
app/main/initiative/_show_voting.lua:
Added missing argument for link
app/main/member/show_tab.lua:
Added outgoing argument to show outgoing delegations correctly
author | bsw |
---|---|
date | Sun Feb 21 14:09:11 2010 +0100 (2010-02-21) |
parents | 00d1004545f1 |
children | aaba4d28dd53 |
rev | line source |
---|---|
bsw/jbe@19 | 1 local search_for = param.get("search_for", atom.string) or "global" |
bsw/jbe@0 | 2 local search_string = param.get("search", atom.string) |
bsw/jbe@0 | 3 |
bsw/jbe@0 | 4 slot.put_into("title", _("Search results for: '#{search}'", { search = search_string })) |
bsw/jbe@0 | 5 |
bsw/jbe@19 | 6 |
bsw/jbe@0 | 7 if search_for == "global" or search_for == "member" then |
bsw/jbe@19 | 8 local members_selector = Member:get_search_selector(search_string) |
bsw/jbe@0 | 9 ui.heading{ content = _"Members" } |
bsw/jbe@0 | 10 execute.view{ |
bsw/jbe@0 | 11 module = "member", |
bsw/jbe@0 | 12 view = "_list", |
bsw@2 | 13 params = { members_selector = members_selector }, |
bsw/jbe@0 | 14 } |
bsw/jbe@0 | 15 end |
bsw/jbe@0 | 16 |
bsw/jbe@19 | 17 if search_for == "global" or search_for == "initiative" then |
bsw/jbe@19 | 18 local initiatives_selector = Initiative:get_search_selector(search_string) |
bsw/jbe@0 | 19 ui.heading{ content = _"Initiatives" } |
bsw/jbe@0 | 20 execute.view{ |
bsw/jbe@0 | 21 module = "initiative", |
bsw/jbe@0 | 22 view = "_list", |
bsw@2 | 23 params = { initiatives_selector = initiatives_selector }, |
bsw/jbe@0 | 24 } |
bsw/jbe@19 | 25 end |
bsw/jbe@19 | 26 |
bsw/jbe@19 | 27 if search_for == "issue" then |
bsw/jbe@19 | 28 local issues_selector = Issue:get_search_selector(search_string) |
bsw/jbe@19 | 29 ui.heading{ content = _"Issues" } |
bsw/jbe@19 | 30 execute.view{ |
bsw/jbe@19 | 31 module = "issue", |
bsw/jbe@19 | 32 view = "_list", |
bsw/jbe@19 | 33 params = { |
bsw/jbe@19 | 34 issues_selector = issues_selector, |
bsw/jbe@19 | 35 highlight_string = search_string, |
bsw/jbe@19 | 36 no_filter = true |
bsw/jbe@19 | 37 }, |
bsw/jbe@19 | 38 } |
bsw/jbe@0 | 39 end |
bsw/jbe@0 | 40 |
bsw@2 | 41 |