liquid_feedback_frontend
diff app/main/issue/show_tab.lua @ 242:2dc13655afca
Removed vote later support (which was removed from core-2)
| author | bsw |
|---|---|
| date | Fri Dec 30 03:02:09 2011 +0100 (2011-12-30) |
| parents | 0849be391140 |
| children | 7196685f9dd7 |
line diff
1.1 --- a/app/main/issue/show_tab.lua Fri Dec 30 02:59:43 2011 +0100 1.2 +++ b/app/main/issue/show_tab.lua Fri Dec 30 03:02:09 2011 +0100 1.3 @@ -5,21 +5,11 @@ 1.4 issue = param.get("issue", "table") 1.5 end 1.6 1.7 -local voting_requested_percentage = 0 1.8 -if issue.vote_later and issue.population and issue.population > 0 then 1.9 - voting_requested_percentage = math.ceil(issue.vote_later / issue.population * 100) 1.10 -end 1.11 - 1.12 local interested_members_selector = issue:get_reference_selector("interested_members_snapshot") 1.13 :join("issue", nil, "issue.id = direct_interest_snapshot.issue_id") 1.14 :add_field("direct_interest_snapshot.weight") 1.15 :add_where("direct_interest_snapshot.event = issue.latest_snapshot_event") 1.16 1.17 -local voting_requests_selector = issue:get_reference_selector("interested_members_snapshot") 1.18 - :join("issue", nil, "issue.id = direct_interest_snapshot.issue_id") 1.19 - :add_where("direct_interest_snapshot.voting_requested = false") 1.20 - :add_where("direct_interest_snapshot.event = issue.latest_snapshot_event") 1.21 - 1.22 local delegations_selector = issue:get_reference_selector("delegations") 1.23 1.24 local tabs = { 1.25 @@ -44,19 +34,6 @@ 1.26 1.27 tabs[#tabs+1] = 1.28 { 1.29 - name = "voting_requests", 1.30 - label = _"Vote later requests" .. " (" .. tostring(voting_requests_selector:count()) .. ") (" .. tostring(voting_requested_percentage) .. "%)", 1.31 - icon = { static = "icons/16/clock_play.png" }, 1.32 - module = "member", 1.33 - view = "_list", 1.34 - params = { 1.35 - issue = issue, 1.36 - members_selector = voting_requests_selector 1.37 - } 1.38 - } 1.39 - 1.40 - tabs[#tabs+1] = 1.41 - { 1.42 name = "delegations", 1.43 label = _"Delegations" .. " (" .. tostring(delegations_selector:count()) .. ")" , 1.44 icon = { static = "icons/16/table_go.png" },