liquid_feedback_frontend
diff app/main/membership/_show_box.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 | 80c215dbf076 |
| children | ca006681befc |
line diff
1.1 --- a/app/main/membership/_show_box.lua Tue Feb 02 00:31:06 2010 +0100 1.2 +++ b/app/main/membership/_show_box.lua Sat Feb 20 22:10:31 2010 +0100 1.3 @@ -36,28 +36,28 @@ 1.4 end 1.5 } 1.6 ui.link{ 1.7 - content = _"Remove my membership", 1.8 - module = "membership", 1.9 - action = "update", 1.10 - params = { area_id = area.id, delete = true }, 1.11 + text = _"Remove my membership", 1.12 + module = "membership", 1.13 + action = "update", 1.14 + params = { area_id = area.id, delete = true }, 1.15 routing = { default = { mode = "redirect", module = "area", view = "show", id = area.id } } 1.16 } 1.17 if membership.autoreject then 1.18 ui.field.text{ value = _"Autoreject is on." } 1.19 ui.link{ 1.20 - content = _"Remove autoreject", 1.21 - module = "membership", 1.22 - action = "update", 1.23 - params = { area_id = area.id, autoreject = false }, 1.24 + text = _"Remove autoreject", 1.25 + module = "membership", 1.26 + action = "update", 1.27 + params = { area_id = area.id, autoreject = false }, 1.28 routing = { default = { mode = "redirect", module = "area", view = "show", id = area.id } } 1.29 } 1.30 else 1.31 ui.field.text{ value = _"Autoreject is off." } 1.32 ui.link{ 1.33 - content = _"Set autoreject", 1.34 - module = "membership", 1.35 - action = "update", 1.36 - params = { area_id = area.id, autoreject = true }, 1.37 + text = _"Set autoreject", 1.38 + module = "membership", 1.39 + action = "update", 1.40 + params = { area_id = area.id, autoreject = true }, 1.41 routing = { default = { mode = "redirect", module = "area", view = "show", id = area.id } } 1.42 } 1.43 end 1.44 @@ -65,10 +65,8 @@ 1.45 } 1.46 else 1.47 ui.link{ 1.48 - content = function() 1.49 - ui.image{ static = "icons/16/user_add.png" } 1.50 - slot.put(_"Become a member") 1.51 - end, 1.52 + image = { static = "icons/16/user_add.png" }, 1.53 + text = _"Become a member", 1.54 module = "membership", 1.55 action = "update", 1.56 params = { area_id = area.id },