liquid_feedback_frontend
view app/main/index/search.lua @ 19:00d1004545f1
Dynamic interface using XMLHttpRequests, and many other changes
Bugfixes:
- Only allow voting on admitted initiatives
- Repaired issue search
- Don't display delegations for closed issues on member page
- Don't show revoke link in initiative, when issue is already half_frozen
- Localization for voting JavaScript
- Display author of suggestions
Disclosure of voting data after voting is finished:
- Possibility to inspect every ballot including preferences
- Show number of voters preferring one initiative to another initiative
Interface behaviour changes:
- Reversed default order of drafts
- Default order of suggestions changed
- Show new drafts of initiatives only once per day in timeline
Accessibility:
- Barrier-free voting implemented
- POST links are now accessible without JavaScript
- Changed gray for unsatisfied supporters in bar graph to a lighter gray
Other interface improvements:
- Optical enhancements
- Dynamic interface using XMLHttpRequests
- Show usage terms in about section
- Show own membership in area listing
- Show uninformed supporters greyed out and marked with yellow question mark
- Warning box in non-admitted initiatives
- When voted, don't display voting notice and change label of voting link
- Show object counts in more tabulator heads
- Enlarged member statement input field
Miscellaneous:
- Code cleanup
- Added README file containing installation instructions
- Use new WebMCP function ui.filters{...} instead of own ui.filter and ui.order functions
Bugfixes:
- Only allow voting on admitted initiatives
- Repaired issue search
- Don't display delegations for closed issues on member page
- Don't show revoke link in initiative, when issue is already half_frozen
- Localization for voting JavaScript
- Display author of suggestions
Disclosure of voting data after voting is finished:
- Possibility to inspect every ballot including preferences
- Show number of voters preferring one initiative to another initiative
Interface behaviour changes:
- Reversed default order of drafts
- Default order of suggestions changed
- Show new drafts of initiatives only once per day in timeline
Accessibility:
- Barrier-free voting implemented
- POST links are now accessible without JavaScript
- Changed gray for unsatisfied supporters in bar graph to a lighter gray
Other interface improvements:
- Optical enhancements
- Dynamic interface using XMLHttpRequests
- Show usage terms in about section
- Show own membership in area listing
- Show uninformed supporters greyed out and marked with yellow question mark
- Warning box in non-admitted initiatives
- When voted, don't display voting notice and change label of voting link
- Show object counts in more tabulator heads
- Enlarged member statement input field
Miscellaneous:
- Code cleanup
- Added README file containing installation instructions
- Use new WebMCP function ui.filters{...} instead of own ui.filter and ui.order functions
| author | bsw/jbe |
|---|---|
| date | Sat Feb 20 22:10:31 2010 +0100 (2010-02-20) |
| parents | 5c601807d397 |
| children | aaba4d28dd53 |
line source
1 local search_for = param.get("search_for", atom.string) or "global"
2 local search_string = param.get("search", atom.string)
4 slot.put_into("title", _("Search results for: '#{search}'", { search = search_string }))
7 if search_for == "global" or search_for == "member" then
8 local members_selector = Member:get_search_selector(search_string)
9 ui.heading{ content = _"Members" }
10 execute.view{
11 module = "member",
12 view = "_list",
13 params = { members_selector = members_selector },
14 }
15 end
17 if search_for == "global" or search_for == "initiative" then
18 local initiatives_selector = Initiative:get_search_selector(search_string)
19 ui.heading{ content = _"Initiatives" }
20 execute.view{
21 module = "initiative",
22 view = "_list",
23 params = { initiatives_selector = initiatives_selector },
24 }
25 end
27 if search_for == "issue" then
28 local issues_selector = Issue:get_search_selector(search_string)
29 ui.heading{ content = _"Issues" }
30 execute.view{
31 module = "issue",
32 view = "_list",
33 params = {
34 issues_selector = issues_selector,
35 highlight_string = search_string,
36 no_filter = true
37 },
38 }
39 end
