liquid_feedback_frontend

diff app/main/vote/list.lua @ 880:fe39c1fb541b

Do not save voting comment changed timestamp if issue is still in voting
author bsw
date Mon Aug 20 01:06:20 2012 +0200 (2012-08-20)
parents ea3d3757ddc3
children 23e12fe721d4
line diff
     1.1 --- a/app/main/vote/list.lua	Mon Aug 20 01:00:09 2012 +0200
     1.2 +++ b/app/main/vote/list.lua	Mon Aug 20 01:06:20 2012 +0200
     1.3 @@ -47,7 +47,7 @@
     1.4                                            encode.html(tostring(issue.id)))
     1.5                    }
     1.6                )
     1.7 -  ui.title(str)
     1.8 +  ui.raw_title(str)
     1.9  else
    1.10    member = app.session.member
    1.11  
    1.12 @@ -435,7 +435,14 @@
    1.13        slot.put(rendered_comment)
    1.14      end
    1.15      if (readonly or direct_voter.comment) and not preview then
    1.16 -      ui.heading{ level = "2", content = _("Voting comment (last updated: #{timestamp})", { timestamp = format.timestamp(direct_voter.comment_changed) }) }
    1.17 +      local text
    1.18 +      if direct_voter.comment_changed then
    1.19 +        text = _("Voting comment (last updated: #{timestamp})", { timestamp = format.timestamp(direct_voter.comment_changed) })
    1.20 +      else
    1.21 +        text = _"Voting comment"
    1.22 +      end
    1.23 +        ui.heading{ level = "2", content = text }
    1.24 +        
    1.25        if direct_voter.comment then
    1.26          local rendered_comment = direct_voter:get_content('html')
    1.27          ui.container{ attr = { class = "member_statement" }, content = function()

Impressum / About Us