liquid_feedback_frontend

diff app/main/issue/_show.lua @ 896:59f02db19531

Cleanup of issue.state attribute
author bsw
date Mon Aug 20 03:53:27 2012 +0200 (2012-08-20)
parents 06e72cc93c64
children 79c1843bb2ab
line diff
     1.1 --- a/app/main/issue/_show.lua	Mon Aug 20 03:52:50 2012 +0200
     1.2 +++ b/app/main/issue/_show.lua	Mon Aug 20 03:53:27 2012 +0200
     1.3 @@ -75,11 +75,11 @@
     1.4        elseif issue.state_time_left then
     1.5          slot.put(" · ")
     1.6          if issue.state_time_left:sub(1,1) == "-" then
     1.7 -          if issue.state == "accepted" then
     1.8 +          if issue.state == "admission" then
     1.9              ui.tag{ content = _("Discussion starts soon") }
    1.10            elseif issue.state == "discussion" then
    1.11              ui.tag{ content = _("Verification starts soon") }
    1.12 -          elseif issue.state == "frozen" then
    1.13 +          elseif issue.state == "verification" then
    1.14              ui.tag{ content = _("Voting starts soon") }
    1.15            elseif issue.state == "voting" then
    1.16              ui.tag{ content = _("Counting starts soon") }
    1.17 @@ -250,7 +250,7 @@
    1.18    end }
    1.19  
    1.20    if not for_listing then
    1.21 -    if issue.state == "cancelled" then
    1.22 +    if issue.state:sub(1, #("canceled_")) == "canceled_" then
    1.23        local policy = issue.policy
    1.24        ui.container{
    1.25          attr = { class = "not_admitted_info" },

Impressum / About Us