Chromium Code Reviews| Index: chrome/browser/resources/options/certificate_tree.js |
| diff --git a/chrome/browser/resources/options/certificate_tree.js b/chrome/browser/resources/options/certificate_tree.js |
| index f8ac854dc3fe2af64b8a6afa29b58255afa8f1ba..2aec9abfce610c08c2a864851f79167a3c67c29b 100644 |
| --- a/chrome/browser/resources/options/certificate_tree.js |
| +++ b/chrome/browser/resources/options/certificate_tree.js |
| @@ -24,6 +24,18 @@ cr.define('options', function() { |
| treeItem.icon = data.icon; |
| } |
| + if (data.untrusted) { |
| + var badge = document.createElement('span') |
| + badge.textContent = (new LocalStrings()).getString("badgeUntrusted"); |
|
mattm
2011/06/29 01:12:07
localStrings.getString
agl
2011/06/29 14:31:11
Done.
|
| + badge.style.backgroundColor = 'pink' |
| + badge.style.border = '1px solid red' |
| + badge.style.borderRadius = '3px' |
| + badge.style.marginLeft = '3px' |
| + badge.style.paddingLeft = '1px' |
| + badge.style.paddingRight = '1px' |
|
mattm
2011/06/29 01:12:07
Create a certificate_tree.css and put the style st
agl
2011/06/29 14:31:11
Done.
|
| + treeItem.labelElement.appendChild(badge) |
|
mattm
2011/06/29 01:12:07
From a UI perspective I wonder if it would look be
agl
2011/06/29 14:31:11
I agree that there's a danger that a long cert nam
|
| + } |
| + |
| return treeItem; |
| } |