liquid_feedback_frontend

diff model/issue.lua @ 52:88ac7798b562

Several bugfixes (getpic.c, accepted but canceled issues, ...); Listing of available policies

- Bugfixes in fastpath/getpic.c (related to crashes since alpha5)
- Respect Content-Types of images in database
(needs database update, as Content-Type was incorrectly stored by previous versions)
- Typo fixed in help messages
- RSS-Feed (currently only after manual authentication while session is valid)
- Listing of available policies
- German translation fixed: "gebe" -> "gib" (Imperativ)
- Bugfixes related to issues which had been accepted but canceled afterwards
- Prohibit creation of initiatives in disabled areas or with disabled policies
author bsw/jbe
date Thu Apr 15 19:58:25 2010 +0200 (2010-04-15)
parents 0849be391140
children 733f65c0c0a0
line diff
     1.1 --- a/model/issue.lua	Sun Apr 04 22:05:11 2010 +0200
     1.2 +++ b/model/issue.lua	Thu Apr 15 19:58:25 2010 +0200
     1.3 @@ -163,23 +163,22 @@
     1.4  end
     1.5  
     1.6  function Issue.object_get:state()
     1.7 -  if self.accepted then
     1.8 -    if self.closed then
     1.9 +  if self.closed then
    1.10 +    if self.fully_frozen then
    1.11        return "finished"
    1.12 -    elseif self.fully_frozen then
    1.13 -      return "voting"
    1.14 -    elseif self.half_frozen then
    1.15 -      return "frozen"
    1.16      else
    1.17 -      return "accepted"
    1.18 +      return "cancelled"
    1.19      end
    1.20 +  elseif self.fully_frozen then
    1.21 +    return "voting"
    1.22 +  elseif self.half_frozen then
    1.23 +    return "frozen"
    1.24 +  elseif self.accepted then
    1.25 +    return "accepted"
    1.26    else
    1.27 -    if self.closed then
    1.28 -      return "cancelled"
    1.29 -    else
    1.30 -      return "new"
    1.31 -    end
    1.32 +    return "new"
    1.33    end
    1.34 +
    1.35  end
    1.36  
    1.37  function Issue.object_get:state_name()

Impressum / About Us