liquid_feedback_frontend
diff app/main/delegation/_show_box.lua @ 180:02aacb3dffe0
Added support for null delegation in upcoming core release
| author | bsw |
|---|---|
| date | Sun Oct 31 23:38:43 2010 +0100 (2010-10-31) |
| parents | bf885faf3452 |
| children | 02197b85ca3b |
line diff
1.1 --- a/app/main/delegation/_show_box.lua Sun Oct 31 23:38:23 2010 +0100 1.2 +++ b/app/main/delegation/_show_box.lua Sun Oct 31 23:38:43 2010 +0100 1.3 @@ -117,15 +117,26 @@ 1.4 onclick = "document.getElementById('delegation_content').style.display = 'block';" 1.5 }, 1.6 content = function() 1.7 - ui.image{ 1.8 - static = "icons/16/error.png" 1.9 - } 1.10 - if delegation.issue_id then 1.11 - slot.put(_"Issue delegation active") 1.12 - elseif delegation.area_id then 1.13 - slot.put(_"Area wide delegation active") 1.14 + if delegation.trustee_id then 1.15 + ui.image{ 1.16 + static = "icons/16/table_go.png" 1.17 + } 1.18 + if delegation.issue_id then 1.19 + slot.put(_"Issue delegation active") 1.20 + elseif delegation.area_id then 1.21 + slot.put(_"Area wide delegation active") 1.22 + else 1.23 + slot.put(_"Global delegation active") 1.24 + end 1.25 else 1.26 - slot.put(_"Global delegation active") 1.27 + ui.image{ 1.28 + static = "icons/16/table_go_crossed.png" 1.29 + } 1.30 + if delegation.issue_id then 1.31 + slot.put(_"Delegation turned off for issue") 1.32 + elseif delegation.area_id then 1.33 + slot.put(_"Delegation turned off for area") 1.34 + end 1.35 end 1.36 ui.image{ 1.37 static = "icons/16/dropdown.png"