liquid_feedback_frontend
annotate app/main/supporter/show_incoming.lua @ 5:afd9f769c7ae
Version beta1
Final voting with Schulze-Method is now possible
Many bug fixes and code cleanup
Registration with invite codes
More sort and filter options
Seperated display of "supporters" and "potential supporters"
Optical changes
Flood limit / initiative contigent is now checked by frontend
Neccessary changes to access core beta11
Final voting with Schulze-Method is now possible
Many bug fixes and code cleanup
Registration with invite codes
More sort and filter options
Seperated display of "supporters" and "potential supporters"
Optical changes
Flood limit / initiative contigent is now checked by frontend
Neccessary changes to access core beta11
| author | bsw/jbe | 
|---|---|
| date | Fri Dec 25 12:00:00 2009 +0100 (2009-12-25) | 
| parents | 80c215dbf076 | 
| children | b9c8503feff7 | 
| rev | line source | 
|---|---|
| bsw@3 | 1 local initiative = Initiative:by_id(param.get("initiative_id", atom.integer)) | 
| bsw@3 | 2 local issue = initiative.issue | 
| bsw@3 | 3 local member = Member:by_id(param.get("member_id", atom.integer)) | 
| bsw@3 | 4 | 
| bsw@3 | 5 local members_selector = Member:new_selector() | 
| bsw/jbe@4 | 6 :join("delegating_interest_snapshot", nil, "delegating_interest_snapshot.member_id = member.id") | 
| bsw/jbe@4 | 7 :add_where{ "delegating_interest_snapshot.issue_id = ?", issue.id } | 
| bsw/jbe@4 | 8 :add_where{ "delegating_interest_snapshot.event = ?", issue.latest_snapshot_event } | 
| bsw/jbe@4 | 9 :add_where{ "delegating_interest_snapshot.delegate_member_ids[1] = ?", member.id } | 
| bsw/jbe@4 | 10 :add_field{ "delegating_interest_snapshot.weight" } | 
| bsw@3 | 11 | 
| bsw@3 | 12 execute.view{ | 
| bsw@3 | 13 module = "member", | 
| bsw@3 | 14 view = "_list", | 
| bsw@3 | 15 params = { | 
| bsw@3 | 16 members_selector = members_selector, | 
| bsw@3 | 17 issue = issue, | 
| bsw@3 | 18 trustee = member | 
| bsw@3 | 19 } | 
| bsw@3 | 20 } |