liquid_feedback_frontend
view app/main/area/show_tab.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 | |
children | 0849be391140 |
line source
1 local area = param.get("area", "table") or Area:by_id(param.get("area_id", atom.integer))
3 local issues_selector = area:get_reference_selector("issues")
4 local members_selector = area:get_reference_selector("members")
5 local delegations_selector = area:get_reference_selector("delegations")
7 ui.tabs{
8 module = "area",
9 view = "show_tab",
10 static_params = { area_id = area.id },
11 {
12 name = "issues",
13 label = _"Issues" .. " (" .. tostring(issues_selector:count()) .. ")",
14 icon = { static = "icons/16/folder.png" },
15 module = "issue",
16 view = "_list",
17 params = {
18 issues_selector = issues_selector,
19 filter = cgi.params["filter"],
20 filter_voting = param.get("filter_voting")
21 }
22 },
23 {
24 name = "members",
25 label = _"Members" .. " (" .. tostring(members_selector:count()) .. ")",
26 icon = { static = "icons/16/group.png" },
27 module = "member",
28 view = "_list",
29 params = { members_selector = members_selector }
30 },
31 {
32 name = "delegations",
33 label = _"Delegations" .. " (" .. tostring(delegations_selector:count()) .. ")",
34 icon = { static = "icons/16/table_go.png" },
35 module = "delegation",
36 view = "_list",
37 params = { delegations_selector = delegations_selector }
38 },
39 }