1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-07 03:12:33 +01:00

this fixes #81

This commit is contained in:
gorhill 2014-07-18 10:57:11 -04:00
parent 2369cc88af
commit ab4ed2f776
2 changed files with 11 additions and 2 deletions

View File

@ -47,6 +47,10 @@
"message":"since install", "message":"since install",
"description":"English: since install" "description":"English: since install"
}, },
"popupOr":{
"message":"or",
"description":"English: or"
},
"pickerCreate":{ "pickerCreate":{
"message":"Create", "message":"Create",
"description":"English: Create" "description":"English: Create"

View File

@ -69,6 +69,7 @@ var renderStats = function() {
isHTTP isHTTP
); );
var or = chrome.i18n.getMessage('popupOr');
var blocked = stats.pageBlockedRequestCount; var blocked = stats.pageBlockedRequestCount;
var total = stats.pageAllowedRequestCount + blocked; var total = stats.pageAllowedRequestCount + blocked;
var html = []; var html = [];
@ -77,7 +78,9 @@ var renderStats = function() {
} else { } else {
html.push( html.push(
formatNumber(blocked), formatNumber(blocked),
'<span class="dim">&nbsp;or&nbsp;', '<span class="dim">&nbsp;',
or,
'&nbsp;',
(blocked * 100 / total).toFixed(0), (blocked * 100 / total).toFixed(0),
'%</span>' '%</span>'
); );
@ -92,7 +95,9 @@ var renderStats = function() {
} else { } else {
html.push( html.push(
formatNumber(blocked), formatNumber(blocked),
'<span class="dim">&nbsp;or&nbsp;', '<span class="dim">&nbsp;',
or,
'&nbsp;',
(blocked * 100 / total).toFixed(0), (blocked * 100 / total).toFixed(0),
'%</span>' '%</span>'
); );