| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> | 1 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> |
| 2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f
lex-layout.html"> | 2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f
lex-layout.html"> |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm
l"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm
l"> |
| 4 <link rel="import" href="chrome://history/history_item.html"> | 4 <link rel="import" href="chrome://history/history_item.html"> |
| 5 | 5 |
| 6 <dom-module id="history-card"> | 6 <dom-module id="history-card"> |
| 7 <template> | 7 <template> |
| 8 <style> | 8 <style> |
| 9 :host { | 9 :host { |
| 10 @apply(--layout-center); | 10 @apply(--layout-center); |
| 11 @apply(--layout-vertical); | 11 @apply(--layout-vertical); |
| 12 padding: 0 24px 20px; | 12 padding: 0 24px 20px; |
| 13 } | 13 } |
| 14 | 14 |
| 15 :host([hidden]) { |
| 16 display: none !important; |
| 17 } |
| 18 |
| 15 #main-container { | 19 #main-container { |
| 16 @apply(--shadow-elevation-2dp); | 20 @apply(--shadow-elevation-2dp); |
| 17 background: #fff; | 21 background: #fff; |
| 18 border-radius: 2px; | 22 border-radius: 2px; |
| 19 max-width: 960px; | 23 max-width: 960px; |
| 20 min-width: 500px; | 24 min-width: 500px; |
| 21 width: 100%; | 25 width: 100%; |
| 22 } | 26 } |
| 23 | 27 |
| 24 #time-gap-separator { | 28 #time-gap-separator { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 39 font-weight: 500; | 43 font-weight: 500; |
| 40 height: 48px; | 44 height: 48px; |
| 41 } | 45 } |
| 42 | 46 |
| 43 #history-item-list { | 47 #history-item-list { |
| 44 padding: 8px 0; | 48 padding: 8px 0; |
| 45 } | 49 } |
| 46 </style> | 50 </style> |
| 47 | 51 |
| 48 <div id="main-container"> | 52 <div id="main-container"> |
| 49 <div id="date-accessed">[[historyDate]]</div> | 53 <div id="date-accessed"> |
| 54 {{cardTitle_(historyItems.length, searchTerm, historyDate)}} |
| 55 </div> |
| 50 <div id="history-item-list"> | 56 <div id="history-item-list"> |
| 51 <template is="dom-repeat" items="{{historyItems}}" | 57 <template is="dom-repeat" items="{{historyItems}}" |
| 52 as="historyItem"> | 58 as="historyItem"> |
| 53 <history-item time-accessed_="[[historyItem.dateTimeOfDay]]" | 59 <history-item time-accessed_="[[historyItem.visibleTimestamp]]" |
| 54 website-title_="[[historyItem.title]]" | 60 website-title_="[[historyItem.title]]" |
| 55 website-domain_="[[historyItem.domain]]" | 61 website-domain_="[[historyItem.domain]]" |
| 56 website-url_="[[historyItem.url]]" | 62 website-url_="[[historyItem.url]]" |
| 57 starred="[[historyItem.starred]]" | 63 starred="[[historyItem.starred]]" |
| 58 selected="{{historyItem.selected}}" | 64 selected="{{historyItem.selected}}" |
| 59 timestamp_="[[historyItem.time]]"> | 65 timestamp_="[[historyItem.time]]" |
| 66 search-term="[[searchTerm]]"> |
| 60 </history-item> | 67 </history-item> |
| 61 <template is="dom-if" | 68 <template is="dom-if" |
| 62 if="[[needsTimeGap_(index, historyItems.length)]]"> | 69 if="[[needsTimeGap_(index, historyItems.length, searchTerm)]]"> |
| 63 <div id="time-gap-separator"></div> | 70 <div id="time-gap-separator"></div> |
| 64 </template> | 71 </template> |
| 65 </template> | 72 </template> |
| 66 </div> | 73 </div> |
| 67 </div> | 74 </div> |
| 68 </template> | 75 </template> |
| 69 <script src="chrome://history/history_card.js"></script> | 76 <script src="chrome://history/history_card.js"></script> |
| 70 </dom-module> | 77 </dom-module> |
| OLD | NEW |