liquid_feedback_frontend
annotate app/main/issue/_details.lua @ 210:2c422bcb79de
Added tag beta31 for changeset bfd8d88f72fc
- Added support to lock inactive member
- Added esperanto translations for new phrases
- Improved and corrected some esperanto phrases
- Display delegation warnings only for open issues
- Refactored code: admin, area, contact and delegation module
- Translated admin menu
- Added policy editor to admin area
- Save and display last login date
- Small fixes
- Added support to lock inactive member
- Added esperanto translations for new phrases
- Improved and corrected some esperanto phrases
- Display delegation warnings only for open issues
- Refactored code: admin, area, contact and delegation module
- Translated admin menu
- Added policy editor to admin area
- Save and display last login date
- Small fixes
author | bsw |
---|---|
date | Sat Feb 05 20:01:09 2011 +0100 (2011-02-05) |
parents | 5d797c6706d5 |
children | 428c545ae819 65a1f7a01e7b |
rev | line source |
---|---|
bsw/jbe@19 | 1 local issue = param.get("issue", "table") |
bsw/jbe@19 | 2 |
bsw/jbe@19 | 3 local policy = issue.policy |
bsw/jbe@19 | 4 ui.form{ |
bsw/jbe@19 | 5 record = issue, |
bsw/jbe@19 | 6 readonly = true, |
bsw/jbe@19 | 7 attr = { class = "vertical" }, |
bsw/jbe@19 | 8 content = function() |
bsw@25 | 9 ui.field.text{ label = _"Population", name = "population" } |
bsw@25 | 10 ui.field.text{ label = _"State", name = "state" } |
bsw@25 | 11 ui.field.timestamp{ label = _"Created at", name = "created" } |
bsw@25 | 12 ui.field.text{ label = _"Admission time", value = issue.admission_time } |
bsw/jbe@19 | 13 ui.field.text{ |
bsw/jbe@19 | 14 label = _"Issue quorum", |
bsw/jbe@19 | 15 value = format.percentage(policy.issue_quorum_num / policy.issue_quorum_den) |
bsw/jbe@19 | 16 } |
poelzi@159 | 17 ui.field.text{ |
poelzi@159 | 18 label = _"Currently required", |
poelzi@159 | 19 value = math.ceil(issue.population * policy.issue_quorum_num / policy.issue_quorum_den) |
poelzi@159 | 20 } |
bsw@25 | 21 ui.field.timestamp{ label = _"Accepted at", name = "accepted" } |
bsw@25 | 22 ui.field.text{ label = _"Discussion time", value = issue.discussion_time } |
bsw@25 | 23 ui.field.vote_now{ label = _"Vote now", name = "vote_now" } |
bsw@25 | 24 ui.field.vote_later{ label = _"Vote later", name = "vote_later" } |
bsw@25 | 25 ui.field.timestamp{ label = _"Half frozen at", name = "half_frozen" } |
bsw@25 | 26 ui.field.text{ label = _"Verification time", value = issue.verification_time } |
bsw/jbe@19 | 27 ui.field.text{ |
bsw/jbe@19 | 28 label = _"Initiative quorum", |
bsw/jbe@19 | 29 value = format.percentage(policy.initiative_quorum_num / policy.initiative_quorum_den) |
bsw/jbe@19 | 30 } |
poelzi@159 | 31 ui.field.text{ |
poelzi@159 | 32 label = _"Currently required", |
poelzi@159 | 33 value = math.ceil(issue.population * (issue.policy.initiative_quorum_num / issue.policy.initiative_quorum_den)), |
poelzi@159 | 34 } |
bsw@25 | 35 ui.field.timestamp{ label = _"Fully frozen at", name = "fully_frozen" } |
bsw@25 | 36 ui.field.text{ label = _"Voting time", value = issue.voting_time } |
bsw@25 | 37 ui.field.timestamp{ label = _"Closed", name = "closed" } |
bsw/jbe@19 | 38 end |
bsw/jbe@19 | 39 } |
bsw/jbe@19 | 40 ui.form{ |
bsw/jbe@19 | 41 record = issue.policy, |
bsw/jbe@19 | 42 readonly = true, |
bsw/jbe@19 | 43 content = function() |
bsw/jbe@19 | 44 end |
bsw/jbe@19 | 45 } |