| OLD | NEW |
| 1 <!-- Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 <!-- Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 2 Use of this source code is governed by a BSD-style license that can be | 2 Use of this source code is governed by a BSD-style license that can be |
| 3 found in the LICENSE file. --> | 3 found in the LICENSE file. --> |
| 4 | 4 |
| 5 <link rel="import" href="../common/cr-action.html"> | 5 <link rel="import" href="../common/cr-action.html"> |
| 6 <link rel="import" href="../common/cr-date.html"> | 6 <link rel="import" href="../common/cr-date.html"> |
| 7 <link rel="import" href="cr-patchset-edit-dialog.html"> | 7 <link rel="import" href="cr-patchset-edit-dialog.html"> |
| 8 | 8 |
| 9 <polymer-element name="cr-patchset-header" attributes="patchset"> | 9 <polymer-element name="cr-patchset-header" attributes="patchset"> |
| 10 <template> | 10 <template> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 flex: 1; | 26 flex: 1; |
| 27 -webkit-flex: 1; | 27 -webkit-flex: 1; |
| 28 } | 28 } |
| 29 | 29 |
| 30 .patchset-actions, | 30 .patchset-actions, |
| 31 .patchset-comments, | 31 .patchset-comments, |
| 32 .patchset-date { | 32 .patchset-date { |
| 33 margin-left: 8px; | 33 margin-left: 8px; |
| 34 } | 34 } |
| 35 </style> | 35 </style> |
| 36 <div class="patchset-title"> | 36 <div class="patchset-title" title="{{ patchset.id }}"> |
| 37 Patch {{ patchset.sequence }}<template if="{{ patchset.title }}">: {
{ patchset.title }}</template> | 37 Patch {{ patchset.sequence }}<template if="{{ patchset.title }}">: {
{ patchset.title }}</template> |
| 38 </div> | 38 </div> |
| 39 <div class="patchset-comments"> | 39 <div class="patchset-comments"> |
| 40 {{ patchset.messageCount - patchset.draftCount | pluralize("comment"
) }} | 40 {{ patchset.messageCount - patchset.draftCount | pluralize("comment"
) }} |
| 41 <template if="{{ patchset.draftCount }}"> | 41 <template if="{{ patchset.draftCount }}"> |
| 42 <template if="{{ patchset.messageCount - patchset.draftCount }}"
>,</template> | 42 <template if="{{ patchset.messageCount - patchset.draftCount }}"
>,</template> |
| 43 {{ patchset.draftCount | pluralize("draft") }} | 43 {{ patchset.draftCount | pluralize("draft") }} |
| 44 </template> | 44 </template> |
| 45 </div> | 45 </div> |
| 46 <div class="patchset-date"><cr-date date="{{ patchset.created }}" relati
ve></cr-date></div> | 46 <div class="patchset-date"><cr-date date="{{ patchset.created }}" relati
ve></cr-date></div> |
| (...skipping 27 matching lines...) Expand all Loading... |
| 74 dialog.patchset = this.patchset; | 74 dialog.patchset = this.patchset; |
| 75 dialog.addEventListener("close", function() { | 75 dialog.addEventListener("close", function() { |
| 76 dialog.remove(); | 76 dialog.remove(); |
| 77 }); | 77 }); |
| 78 this.$.dialogs.appendChild(dialog); | 78 this.$.dialogs.appendChild(dialog); |
| 79 dialog.showModal(); | 79 dialog.showModal(); |
| 80 }, | 80 }, |
| 81 }); | 81 }); |
| 82 </script> | 82 </script> |
| 83 </polymer-element> | 83 </polymer-element> |
| OLD | NEW |