liquid_feedback_frontend

view app/main/initiative/show_support.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 d13b27a37ad5
line source
1 local initiative = param.get("initiative", "table") or Initiative:by_id(param.get_id())
3 -- TODO performance
4 local initiator = Initiator:by_pk(initiative.id, app.session.member.id)
6 ui.partial{
7 module = "initiative",
8 view = "show_support",
9 id = initiative.id,
10 target = "initiative_" .. tostring(initiative.id) .. "_support",
11 content = function()
12 ui.container{
13 attr = {
14 class = "slot_support vote_info",
15 },
16 content = function()
17 ui.container{
18 attr = { class = "actions" },
19 content = function()
20 execute.view{
21 module = "supporter",
22 view = "_show_box",
23 params = { initiative = initiative }
24 }
25 if initiator and initiator.accepted and not initiative.issue.half_frozen and not initiative.issue.closed and not initiative.revoked then
26 ui.link{
27 attr = { class = "action", style = "float: left;" },
28 content = function()
29 ui.image{ static = "icons/16/script_delete.png" }
30 slot.put(_"Revoke initiative")
31 end,
32 module = "initiative",
33 view = "revoke",
34 id = initiative.id
35 }
36 end
37 end
38 }
39 end
40 }
41 slot.put("<div style='clear: left;'></div>")
42 end
43 }

Impressum / About Us