liquid_feedback_frontend

diff 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
author bsw/jbe
date Sat Feb 20 22:10:31 2010 +0100 (2010-02-20)
parents
children 0849be391140
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/app/main/area/show_tab.lua	Sat Feb 20 22:10:31 2010 +0100
     1.3 @@ -0,0 +1,40 @@
     1.4 +local area = param.get("area", "table") or Area:by_id(param.get("area_id", atom.integer))
     1.5 +
     1.6 +local issues_selector = area:get_reference_selector("issues")
     1.7 +local members_selector = area:get_reference_selector("members")
     1.8 +local delegations_selector = area:get_reference_selector("delegations")
     1.9 +
    1.10 +ui.tabs{
    1.11 +  module = "area",
    1.12 +  view = "show_tab",
    1.13 +  static_params = { area_id = area.id },
    1.14 +  {
    1.15 +    name = "issues",
    1.16 +    label = _"Issues" .. " (" .. tostring(issues_selector:count()) .. ")",
    1.17 +    icon = { static = "icons/16/folder.png" },
    1.18 +    module = "issue",
    1.19 +    view = "_list",
    1.20 +    params = {
    1.21 +      issues_selector = issues_selector,
    1.22 +      filter = cgi.params["filter"],
    1.23 +      filter_voting = param.get("filter_voting")
    1.24 +    }
    1.25 +  },
    1.26 +  {
    1.27 +    name = "members",
    1.28 +    label = _"Members" .. " (" .. tostring(members_selector:count()) .. ")",
    1.29 +    icon = { static = "icons/16/group.png" },
    1.30 +    module = "member",
    1.31 +    view = "_list",
    1.32 +    params = { members_selector = members_selector }
    1.33 +  },
    1.34 +  {
    1.35 +    name = "delegations",
    1.36 +    label = _"Delegations" .. " (" .. tostring(delegations_selector:count()) .. ")",
    1.37 +    icon = { static = "icons/16/table_go.png" },
    1.38 +    module = "delegation",
    1.39 +    view = "_list",
    1.40 +    params = { delegations_selector = delegations_selector }
    1.41 +  },
    1.42 +}
    1.43 +

Impressum / About Us