liquid_feedback_frontend
changeset 937:c4e4be01285c
Correct formatting of timestamps and interval in issue and initiatve details added
author | bsw |
---|---|
date | Sun Nov 04 18:51:07 2012 +0100 (2012-11-04) |
parents | c0a9c2762af7 |
children | 79c1843bb2ab |
files | app/main/initiative/_details.lua app/main/issue/_details.lua |
line diff
1.1 --- a/app/main/initiative/_details.lua Sun Nov 04 18:50:21 2012 +0100 1.2 +++ b/app/main/initiative/_details.lua Sun Nov 04 18:51:07 2012 +0100 1.3 @@ -7,7 +7,7 @@ 1.4 content = function() 1.5 ui.field.text{ 1.6 label = _"Created at", 1.7 - value = tostring(initiative.created) 1.8 + value = format.timestamp(initiative.created) 1.9 } 1.10 if initiative.revoked then 1.11 ui.field.text{
2.1 --- a/app/main/issue/_details.lua Sun Nov 04 18:50:21 2012 +0100 2.2 +++ b/app/main/issue/_details.lua Sun Nov 04 18:51:07 2012 +0100 2.3 @@ -11,7 +11,7 @@ 2.4 if policy.polling then 2.5 ui.field.text{ label = _"Admission time", value = _"Implicitly admitted" } 2.6 else 2.7 - ui.field.text{ label = _"Admission time", value = issue.admission_time } 2.8 + ui.field.text{ label = _"Admission time", value = format.interval_text(issue.admission_time_text) } 2.9 ui.field.text{ 2.10 label = _"Issue quorum", 2.11 value = format.percentage(policy.issue_quorum_num / policy.issue_quorum_den) 2.12 @@ -26,11 +26,11 @@ 2.13 if issue.accepted then 2.14 ui.field.timestamp{ label = _"Accepted at", name = "accepted" } 2.15 end 2.16 - ui.field.text{ label = _"Discussion time", value = issue.discussion_time } 2.17 + ui.field.text{ label = _"Discussion time", value = format.interval_text(issue.discussion_time_text) } 2.18 if issue.half_frozen then 2.19 ui.field.timestamp{ label = _"Half frozen at", name = "half_frozen" } 2.20 end 2.21 - ui.field.text{ label = _"Verification time", value = issue.verification_time } 2.22 + ui.field.text{ label = _"Verification time", value = format.interval_text(issue.verification_time_text) } 2.23 ui.field.text{ 2.24 label = _"Initiative quorum", 2.25 value = format.percentage(policy.initiative_quorum_num / policy.initiative_quorum_den) 2.26 @@ -44,7 +44,7 @@ 2.27 if issue.fully_frozen then 2.28 ui.field.timestamp{ label = _"Fully frozen at", name = "fully_frozen" } 2.29 end 2.30 - ui.field.text{ label = _"Voting time", value = issue.voting_time } 2.31 + ui.field.text{ label = _"Voting time", value = format.interval_text(issue.voting_time_text) } 2.32 if issue.closed then 2.33 ui.field.timestamp{ label = _"Closed", name = "closed" } 2.34 end