liquid_feedback_frontend
diff app/main/initiative/_details.lua @ 274:aec9df5b4cd3
More optical enhancements and repositioning of elements
| author | bsw |
|---|---|
| date | Sun Feb 12 12:20:19 2012 +0100 (2012-02-12) |
| parents | db91c2005278 |
| children | cc64a4fc6ab6 |
line diff
1.1 --- a/app/main/initiative/_details.lua Wed Feb 08 18:49:22 2012 +0100 1.2 +++ b/app/main/initiative/_details.lua Sun Feb 12 12:20:19 2012 +0100 1.3 @@ -1,12 +1,12 @@ 1.4 local initiative = param.get("initiative", "table") 1.5 1.6 +ui.container{ content = _"Initiative details" } 1.7 + 1.8 ui.form{ 1.9 attr = { class = "vertical" }, 1.10 record = initiative, 1.11 readonly = true, 1.12 content = function() 1.13 - local policy = initiative.issue.policy 1.14 - ui.field.text{ label = _"Issue policy", value = initiative.issue.policy.name } 1.15 ui.field.text{ 1.16 label = _"Created at", 1.17 value = tostring(initiative.created) 1.18 @@ -17,17 +17,10 @@ 1.19 value = format.timestamp(initiative.revoked) 1.20 } 1.21 end 1.22 - ui.field.text{ 1.23 - label = _"Initiative quorum", 1.24 - value = format.percentage(policy.initiative_quorum_num / policy.initiative_quorum_den) 1.25 - } 1.26 - if initiative.issue.population then 1.27 - ui.field.text{ 1.28 - label = _"Currently required", 1.29 - value = math.ceil(initiative.issue.population * (policy.initiative_quorum_num / policy.initiative_quorum_den)), 1.30 - } 1.31 - end 1.32 - -- ui.field.date{ label = _"Revoked at", name = "revoked" } 1.33 ui.field.boolean{ label = _"Admitted", name = "admitted" } 1.34 end 1.35 } 1.36 + 1.37 +ui.container{ content = _"Issue details" } 1.38 + 1.39 +execute.view{ module = "issue", view = "_details", params = { issue = initiative.issue } } 1.40 \ No newline at end of file