Chromium Code Reviews| 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/paper-styles/shadow.htm l"> | 2 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm l"> |
| 3 <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/iron-flex-layout/iron-f lex-layout.html"> |
| 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); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 49 {{historyDate}} | 49 {{historyDate}} |
| 50 </div> | 50 </div> |
| 51 <div id="history-item-list"> | 51 <div id="history-item-list"> |
| 52 <template is="dom-repeat" items="{{historyItems}}" | 52 <template is="dom-repeat" items="{{historyItems}}" |
| 53 as="historyItem"> | 53 as="historyItem"> |
| 54 <history-item time-accessed="{{historyItem.dateTimeOfDay}}" | 54 <history-item time-accessed="{{historyItem.dateTimeOfDay}}" |
| 55 website-title="{{historyItem.title}}" | 55 website-title="{{historyItem.title}}" |
| 56 website-domain="{{historyItem.domain}}" | 56 website-domain="{{historyItem.domain}}" |
| 57 website-url="{{historyItem.url}}" | 57 website-url="{{historyItem.url}}" |
| 58 starred="{{historyItem.starred}}" | 58 starred="{{historyItem.starred}}" |
| 59 selected="{{historyItem.selected}}" | 59 selected="{{historyItem.selected}}"> |
| 60 timestamp="{{historyItem.time}}"> | |
| 61 </history-item> | 60 </history-item> |
| 62 <template is="dom-if" if="{{needsTimeGap_(index, historyItem)}}"> | 61 <template is="dom-if" if="{{needsTimeGap_(index, historyItems.length)} }"> |
|
tsergeant
2016/01/18 02:33:52
You should change the definition of needsTimeGap_
hsampson
2016/01/19 23:41:39
Done.
| |
| 63 <div id="time-gap-separator"></div> | 62 <div id="time-gap-separator"></div> |
| 64 </template> | 63 </template> |
| 65 </template> | 64 </template> |
| 66 </div> | 65 </div> |
| 67 </div> | 66 </div> |
| 68 </template> | 67 </template> |
| 69 <script src="chrome://history/history-card.js"></script> | 68 <script src="chrome://history/history-card.js"></script> |
| 70 </dom-module> | 69 </dom-module> |
| OLD | NEW |