| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 The <ignores-page-sk> custom element declaration. | 2 The <ignores-page-sk> custom element declaration. |
| 3 | 3 |
| 4 A container element to manage the any digests that should be ignored. | 4 A container element to manage the any digests that should be ignored. |
| 5 | 5 |
| 6 Attributes: | 6 Attributes: |
| 7 None | 7 None |
| 8 | 8 |
| 9 Methods: | 9 Methods: |
| 10 pageSelected: This function has to be called if the page is selected | 10 pageSelected: This function has to be called if the page is selected |
| 11 via a route. It's equivalent to the ready function, when we don't | 11 via a route. It's equivalent to the ready function, when we don't |
| 12 want to trigger loading the content unless a user selects the page. | 12 want to trigger loading the content unless a user selects the page. |
| 13 | 13 |
| 14 pageDeselected: Has to be called when the page goes out of view. | 14 pageDeselected: Has to be called when the page goes out of view. |
| 15 | 15 |
| 16 Events: | 16 Events: |
| 17 None | 17 None |
| 18 | 18 |
| 19 Mailboxes: | 19 Mailboxes: |
| 20 None | 20 None |
| 21 | 21 |
| 22 --> | 22 --> |
| 23 | 23 |
| 24 <link rel="import" href="bower_components/polymer/polymer.html"> | 24 <link rel="import" href="bower_components/polymer/polymer.html"> |
| 25 <link rel="import" href="bower_components/paper-dialog/paper-dialog.html"> | 25 <link rel="import" href="bower_components/paper-dialog/paper-dialog.html"> |
| 26 <link rel="import" href="bower_components/iron-flex-layout/iron-flex-layout-clas
ses.html"> | 26 <link rel="import" href="bower_components/iron-flex-layout/iron-flex-layout-clas
ses.html"> |
| 27 <link rel="import" href="bower_components/paper-fab/paper-fab.html"> | 27 <link rel="import" href="bower_components/paper-fab/paper-fab.html"> |
| 28 <link rel="import" href="bower_components/paper-input/paper-input.html"> | 28 <link rel="import" href="bower_components/paper-input/paper-input.html"> |
| 29 <link rel="import" href="bower_components/paper-dialog-scrollable/paper-dialog-s
crollable.html"> | 29 <link rel="import" href="bower_components/paper-dialog-scrollable/paper-dialog-s
crollable.html"> |
| 30 <link rel="import" href="bower_components/paper-tooltip/paper-tooltip.html"> |
| 30 | 31 |
| 31 <link rel=import href="../common/imp/query.html"> | 32 <link rel=import href="../common/imp/query.html"> |
| 32 | 33 |
| 33 <link rel="import" href="ignore-summary-sk.html"> | 34 <link rel="import" href="ignore-summary-sk.html"> |
| 34 <link rel="import" href="shared-styles.html"> | 35 <link rel="import" href="shared-styles.html"> |
| 35 | 36 |
| 36 <dom-module id="ignores-page-sk"> | 37 <dom-module id="ignores-page-sk"> |
| 37 <template> | 38 <template> |
| 38 <style include="shared-styles"></style> | 39 <style include="shared-styles"></style> |
| 39 <style include="iron-flex iron-flex-alignment"> | 40 <style include="iron-flex iron-flex-alignment"> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 50 #expiresHeader, | 51 #expiresHeader, |
| 51 #queryHeader, | 52 #queryHeader, |
| 52 #noteHeader, | 53 #noteHeader, |
| 53 #countHeader { | 54 #countHeader { |
| 54 display: inline-block; | 55 display: inline-block; |
| 55 font-weight: bold; | 56 font-weight: bold; |
| 56 margin-right: 0.5em; | 57 margin-right: 0.5em; |
| 57 } | 58 } |
| 58 | 59 |
| 59 #nameHeader { | 60 #nameHeader { |
| 60 width: 15em; | 61 width: 18em; |
| 61 } | 62 } |
| 62 | 63 |
| 63 #updatedByHeader { | 64 #updatedByHeader { |
| 64 width: 15em; | 65 width: 18em; |
| 65 } | 66 } |
| 66 | 67 |
| 67 #expiresHeader { | 68 #expiresHeader { |
| 68 width: 10em; | 69 width: 5em; |
| 69 } | 70 } |
| 70 | 71 |
| 71 #countHeader { | 72 #countHeader { |
| 72 width: 6em; | 73 width: 8em; |
| 73 } | 74 } |
| 74 | 75 |
| 75 #queryHeader { | 76 #queryHeader { |
| 76 width: 20em; | 77 width: 20em; |
| 77 } | 78 } |
| 78 | 79 |
| 79 #noteHeader { | 80 #noteHeader { |
| 80 width: 20em; | 81 width: 20em; |
| 81 } | 82 } |
| 82 | 83 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 } | 116 } |
| 116 | 117 |
| 117 </style> | 118 </style> |
| 118 <div class="layout vertical ignoresPageWrapper"> | 119 <div class="layout vertical ignoresPageWrapper"> |
| 119 <div class="layout horizontal"> | 120 <div class="layout horizontal"> |
| 120 <div id=nameHeader>Name</div> | 121 <div id=nameHeader>Name</div> |
| 121 <div id=expiresHeader>Expires</div> | 122 <div id=expiresHeader>Expires</div> |
| 122 <div id=updatedByHeader>Updated By</div> | 123 <div id=updatedByHeader>Updated By</div> |
| 123 <div id=queryHeader>Filter</div> | 124 <div id=queryHeader>Filter</div> |
| 124 <div id=noteHeader>Note</div> | 125 <div id=noteHeader>Note</div> |
| 125 <div id=countHeader>Ignored</div> | 126 <div id=countHeader>Ignored <iron-icon class="headerIcon" icon="icons:i
nfo-outline"></iron-icon> |
| 127 <paper-tooltip>Number of images that match this rule: <br> |
| 128 Exclusively matched images / All matched images |
| 129 </paper-tooltip> |
| 130 </div> |
| 126 </div> | 131 </div> |
| 127 <div id=summaries class="vertical layout"> | 132 <div id=summaries class="vertical layout"> |
| 128 <template is="dom-repeat" items={{ignores}}> | 133 <template is="dom-repeat" items={{ignores}}> |
| 129 <ignore-summary-sk value="{{item}}"></ignore-summary-sk> | 134 <ignore-summary-sk value="{{item}}"></ignore-summary-sk> |
| 130 </template> | 135 </template> |
| 131 </div> | 136 </div> |
| 132 </div> | 137 </div> |
| 133 | 138 |
| 134 <paper-dialog id="confirmDelete"> | 139 <paper-dialog id="confirmDelete"> |
| 135 <h2>Confirm Delete</h2> | 140 <h2>Confirm Delete</h2> |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 }, | 288 }, |
| 284 | 289 |
| 285 _openDialog: function(isEdit) { | 290 _openDialog: function(isEdit) { |
| 286 this._isEdit = isEdit; | 291 this._isEdit = isEdit; |
| 287 this._readyToAdd(); | 292 this._readyToAdd(); |
| 288 this.$.addEditDialog.open(); | 293 this.$.addEditDialog.open(); |
| 289 } | 294 } |
| 290 }); | 295 }); |
| 291 </script> | 296 </script> |
| 292 </dom-module> | 297 </dom-module> |
| OLD | NEW |