liquid_feedback_frontend
diff app/main/delegation/_show_box.lua @ 341:56c13151d0b8
Let delegation drop down box looks more nice
author | bsw |
---|---|
date | Tue Feb 28 19:13:50 2012 +0100 (2012-02-28) |
parents | b77e6a17ca77 |
children |
line diff
1.1 --- a/app/main/delegation/_show_box.lua Tue Feb 28 19:02:15 2012 +0100 1.2 +++ b/app/main/delegation/_show_box.lua Tue Feb 28 19:13:50 2012 +0100 1.3 @@ -214,7 +214,7 @@ 1.4 1.5 for i, record in ipairs(delegation_chain) do 1.6 local style 1.7 - local overridden = record.overridden 1.8 + local overridden = (not issue or issue.state ~= 'voting') and record.overridden 1.9 if record.scope_in then 1.10 ui.container{ 1.11 attr = { class = "delegation_info" }, 1.12 @@ -222,12 +222,12 @@ 1.13 if not overridden then 1.14 ui.image{ 1.15 attr = { class = "delegation_arrow" }, 1.16 - static = "delegation_arrow_vertical.jpg" 1.17 + static = "delegation_arrow_24_vertical.png" 1.18 } 1.19 else 1.20 ui.image{ 1.21 attr = { class = "delegation_arrow delegation_arrow_overridden" }, 1.22 - static = "delegation_arrow_vertical.jpg" 1.23 + static = "delegation_arrow_24_vertical.png" 1.24 } 1.25 end 1.26 ui.container{ 1.27 @@ -255,7 +255,7 @@ 1.28 } 1.29 end 1.30 } 1.31 - if record.participation and not record.overridden then 1.32 + if (not issue or issue.state ~= 'voting') and record.participation and not record.overridden then 1.33 ui.container{ 1.34 attr = { class = "delegation_participation" }, 1.35 content = function()