Chromium Code Reviews| Index: chrome/browser/resources/md_history/history_card.html |
| diff --git a/chrome/browser/resources/md_history/history_card.html b/chrome/browser/resources/md_history/history_card.html |
| index 706da7fc406471b9dac69d49eaee53b9cc589304..15307cc515c61f8ee82dfe4b502f2acb4cc5faac 100644 |
| --- a/chrome/browser/resources/md_history/history_card.html |
| +++ b/chrome/browser/resources/md_history/history_card.html |
| @@ -12,6 +12,10 @@ |
| padding: 0 24px 20px; |
| } |
| + :host([hidden]) { |
| + display: none !important; |
| + } |
| + |
| #main-container { |
| @apply(--shadow-elevation-2dp); |
| background: #fff; |
| @@ -45,7 +49,9 @@ |
| </style> |
| <div id="main-container"> |
| - <div id="date-accessed">[[historyDate]]</div> |
| + <div id="date-accessed"> |
| + {{searchResultTitle_(historyItems.length, searchTerm, historyDate)}} |
|
tsergeant
2016/02/04 02:28:49
Can you rename searchResultTitle to cardTitle or s
hsampson
2016/02/08 04:40:22
Done.
|
| + </div> |
| <div id="history-item-list"> |
| <template is="dom-repeat" items="[[historyItems]]" |
|
tsergeant
2016/02/04 02:28:49
Make sure this is rebased correctly, so that bug d
hsampson
2016/02/08 04:40:22
Done.
|
| as="historyItem"> |
| @@ -55,9 +61,10 @@ |
| website-url_="[[historyItem.url]]" |
| starred="[[historyItem.starred]]" |
| selected="{{historyItem.selected}}" |
| - timestamp_="[[historyItem.time]]"> |
| + timestamp_="[[historyItem.time]]" |
| + search-term="[[searchTerm]]"> |
| </history-item> |
| - <template is="dom-if" if="[[needsTimeGap_(index, historyItem)]]"> |
| + <template is="dom-if" if="[[needsTimeGap_(index, historyItem, searchTerm)]]"> |
| <div id="time-gap-separator"></div> |
| </template> |
| </template> |