Index: chrome/browser/resources/ntp4/suggestions_page.js |
diff --git a/chrome/browser/resources/ntp4/suggestions_page.js b/chrome/browser/resources/ntp4/suggestions_page.js |
index eefd8a79b2b1087e2c951a7c0243c29454ae53c5..dece9b76f9a64642188ee4bb50fe4abea3967129 100644 |
--- a/chrome/browser/resources/ntp4/suggestions_page.js |
+++ b/chrome/browser/resources/ntp4/suggestions_page.js |
@@ -70,7 +70,8 @@ cr.define('ntp', function() { |
'<span class="favicon"></span>' + |
'</span>' + |
'<div class="color-stripe"></div>' + |
- '<span class="title"></span>'; |
+ '<span class="title"></span>' + |
+ '<span class="score"></span>'; |
this.querySelector('.close-button').title = |
templateData.removethumbnailtooltip; |
@@ -112,6 +113,9 @@ cr.define('ntp', function() { |
title.textContent = data.title; |
title.dir = data.direction; |
+ var score = this.querySelector('.score'); |
+ score.textContent = data.score; |
+ |
// Sets the tooltip. |
this.title = data.title; |
@@ -272,8 +276,8 @@ cr.define('ntp', function() { |
* @return {number} The height. |
*/ |
function heightForWidth(width) { |
- // The 2s are for borders, the 31 is for the title. |
- return (width - 2) * 132 / 212 + 2 + 31; |
+ // The 2s are for borders, the 36 is for the title and score. |
+ return (width - 2) * 132 / 212 + 2 + 36; |
} |
var THUMBNAIL_COUNT = 8; |