image-layers: remove dash from left side of badge

As discussed in #538
This commit is contained in:
Thaddee Tyl 2015-11-11 16:35:58 +01:00
parent 0c24199774
commit b29e3af4aa

View File

@ -4316,6 +4316,7 @@ cache(function(data, match, sendBadge, request) {
try {
if (type == 'image-size') {
size = metric(buffer[0].repo.size) + "B";
badgeData.text[0] = 'image size';
badgeData.text[1] = size;
} else if (type == 'layers') {
badgeData.text[1] = buffer[0].repo.count;