liquid_feedback_frontend
diff app/main/issue/show.lua @ 3:768faea1096d
Version alpha4
Members interested in an issue or supporting an initiative have a weight information attached. Browsing the members causing that weight is possible.
Initiatives may provide a link to an external discussion platform
Direct link on every initiative page to create an alternative initiative
Bugfix: No error when clicking "neutral", when "neutral" is currently selected
Members interested in an issue or supporting an initiative have a weight information attached. Browsing the members causing that weight is possible.
Initiatives may provide a link to an external discussion platform
Direct link on every initiative page to create an alternative initiative
Bugfix: No error when clicking "neutral", when "neutral" is currently selected
author | bsw |
---|---|
date | Mon Nov 30 12:00:00 2009 +0100 (2009-11-30) |
parents | 5c601807d397 |
children | 80c215dbf076 |
line diff
1.1 --- a/app/main/issue/show.lua Mon Nov 23 12:00:00 2009 +0100 1.2 +++ b/app/main/issue/show.lua Mon Nov 30 12:00:00 2009 +0100 1.3 @@ -61,7 +61,7 @@ 1.4 } 1.5 } 1.6 slot.put("<br />") 1.7 - if not issue.frozen and not issue.closed then 1.8 + if not issue.fully_frozen and not issue.closed then 1.9 ui.link{ 1.10 attr = { class = "action" }, 1.11 content = function() 1.12 @@ -88,6 +88,23 @@ 1.13 }, 1.14 --]] 1.15 { 1.16 + name = "interested_members", 1.17 + label = _"Interested members", 1.18 + content = function() 1.19 + execute.view{ 1.20 + module = "member", 1.21 + view = "_list", 1.22 + params = { 1.23 + issue = issue, 1.24 + members_selector = issue:get_reference_selector("interested_members_snapshot") 1.25 + :join("issue", nil, "issue.id = direct_interest_snapshot.issue_id") 1.26 + :add_field("direct_interest_snapshot.weight") 1.27 + :add_where("direct_interest_snapshot.event = issue.latest_snapshot_event") 1.28 + } 1.29 + } 1.30 + end 1.31 + }, 1.32 + { 1.33 name = "delegations", 1.34 label = _"Delegations", 1.35 content = function() 1.36 @@ -110,19 +127,23 @@ 1.37 content = function() 1.38 ui.field.text{ label = _"State", name = "state" } 1.39 ui.field.timestamp{ label = _"Created at", name = "created" } 1.40 - ui.field.text{ label = _"admission_time", value = policy.admission_time } 1.41 - ui.field.integer{ label = _"issue_quorum_num", value = policy.issue_quorum_num } 1.42 - ui.field.integer{ label = _"issue_quorum_den", value = policy.issue_quorum_den } 1.43 - ui.field.timestamp{ label = _"Accepted", name = "accepted" } 1.44 - ui.field.text{ label = _"discussion_time", value = policy.discussion_time } 1.45 + ui.field.text{ label = _"Admission time", value = policy.admission_time } 1.46 + ui.field.text{ 1.47 + label = _"Issue quorum", 1.48 + value = format.percentage(policy.issue_quorum_num / policy.issue_quorum_den) 1.49 + } 1.50 + ui.field.timestamp{ label = _"Accepted at", name = "accepted" } 1.51 + ui.field.text{ label = _"Discussion time", value = policy.discussion_time } 1.52 ui.field.vote_now{ label = _"Vote now", name = "vote_now" } 1.53 ui.field.vote_later{ label = _"Vote later", name = "vote_later" } 1.54 - ui.field.timestamp{ label = _"Half frozen", name = "half_frozen" } 1.55 - ui.field.text{ label = _"verification_time", value = policy.verification_time } 1.56 - ui.field.integer{ label = _"initiative_quorum_num", value = policy.initiative_quorum_num } 1.57 - ui.field.integer{ label = _"initiative_quorum_den", value = policy.initiative_quorum_den } 1.58 - ui.field.timestamp{ label = _"Fully frozen", name = "fully_frozen" } 1.59 - ui.field.text{ label = _"voting_time", value = policy.voting_time } 1.60 + ui.field.timestamp{ label = _"Half frozen at", name = "half_frozen" } 1.61 + ui.field.text{ label = _"Verification time", value = policy.verification_time } 1.62 + ui.field.text{ 1.63 + label = _"Initiative quorum", 1.64 + value = format.percentage(policy.initiative_quorum_num / policy.initiative_quorum_den) 1.65 + } 1.66 + ui.field.timestamp{ label = _"Fully frozen at", name = "fully_frozen" } 1.67 + ui.field.text{ label = _"Voting time", value = policy.voting_time } 1.68 ui.field.timestamp{ label = _"Closed", name = "closed" } 1.69 end 1.70 }