| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 Copyright 2017 The LUCI Authors. All rights reserved. | 2 Copyright 2017 The LUCI Authors. All rights reserved. |
| 3 Use of this source code is governed under the Apache License, Version 2.0 | 3 Use of this source code is governed under the Apache License, Version 2.0 |
| 4 that can be found in the LICENSE file. | 4 that can be found in the LICENSE file. |
| 5 --> | 5 --> |
| 6 | 6 |
| 7 <link rel="import" href="config-file-card.html"> | 7 <link rel="import" href="config-file-card.html"> |
| 8 <link rel="import" href="../../bower_components/iron-ajax/iron-ajax.html"> | 8 <link rel="import" href="../../bower_components/iron-ajax/iron-ajax.html"> |
| 9 <link rel="import" href="../../bower_components/iron-icons/iron-icons.html"> | 9 <link rel="import" href="../../bower_components/iron-icons/iron-icons.html"> |
| 10 <link rel="import" href="../../bower_components/paper-item/paper-item.html"> | 10 <link rel="import" href="../../bower_components/paper-item/paper-item.html"> |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 <template is="dom-if" if="[[_not(lastImportAttempt.success)]]"> | 106 <template is="dom-if" if="[[_not(lastImportAttempt.success)]]"> |
| 107 <iron-icon id="invalid" icon="icons:warning" class="paper-red"></i
ron-icon> | 107 <iron-icon id="invalid" icon="icons:warning" class="paper-red"></i
ron-icon> |
| 108 </template> | 108 </template> |
| 109 </template> | 109 </template> |
| 110 <template is="dom-if" if="[[_not(lastImportAttempt)]]"> | 110 <template is="dom-if" if="[[_not(lastImportAttempt)]]"> |
| 111 <iron-icon icon="icons:help" class="paper-grey"></iron-icon> | 111 <iron-icon icon="icons:help" class="paper-grey"></iron-icon> |
| 112 </template> | 112 </template> |
| 113 </template> | 113 </template> |
| 114 <template is="dom-if" if="[[auth_headers]]"> | 114 <template is="dom-if" if="[[auth_headers]]"> |
| 115 <iron-icon id="force-refresh" | 115 <iron-icon id="force-refresh" |
| 116 icon="icons:refresh" | 116 icon="icons:file-download" |
| 117 on-tap="_forceRefresh"> | 117 on-tap="_forceRefresh"> |
| 118 </iron-icon> | 118 </iron-icon> |
| 119 <paper-tooltip for="force-refresh" offset="0"> | 119 <paper-tooltip for="force-refresh" offset="0"> |
| 120 Re-import the config-set from the repository. | 120 Re-import the config-set from the repository. |
| 121 </paper-tooltip> | 121 </paper-tooltip> |
| 122 </template> | 122 </template> |
| 123 </div> | 123 </div> |
| 124 <div class="category"> | 124 <div class="category"> |
| 125 <p>[[_formatCategory(category, route.path)]]</p> | 125 <p>[[_formatCategory(category, route.path)]]</p> |
| 126 <template is="dom-if" if="[[_not(isLoading)]]"> | 126 <template is="dom-if" if="[[_not(isLoading)]]"> |
| 127 <template is="dom-if" if="[[lastImportAttempt]]"> | 127 <template is="dom-if" if="[[lastImportAttempt]]"> |
| 128 <template is="dom-if" if="[[_not(lastImportAttempt.success)]]"> | 128 <template is="dom-if" if="[[_not(lastImportAttempt.success)]]"> |
| 129 Last import attempt failed: [[lastImportAttempt.message]] | 129 <div class="paper-red"> |
| 130 Last import attempt failed: [[lastImportAttempt.message]] |
| 131 </div> |
| 130 </template> | 132 </template> |
| 131 <template is="dom-if" if="[[lastImportAttempt.success]]"> | 133 <template is="dom-if" if="[[lastImportAttempt.success]]"> |
| 132 Last import succeeded. | 134 Last import succeeded. |
| 133 </template> | 135 </template> |
| 134 </template> | 136 </template> |
| 135 <template is="dom-if" if="[[_not(lastImportAttempt)]]"> | 137 <template is="dom-if" if="[[_not(lastImportAttempt)]]"> |
| 136 Last import attempt info not available. | 138 Last import attempt info not available. |
| 137 </template> | 139 </template> |
| 138 <p>Revision: [[_getRevision(revision)]]</p> | 140 <p>Revision: [[_getRevision(revision)]]</p> |
| 139 <p>Timestamp: [[_getExactTime(timestamp)]]</p> | 141 <p>Timestamp: [[_getExactTime(timestamp)]]</p> |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 this.$.requestConfigs.generateRequest(); | 315 this.$.requestConfigs.generateRequest(); |
| 314 }, | 316 }, |
| 315 | 317 |
| 316 _openConfigGitiles: function() { | 318 _openConfigGitiles: function() { |
| 317 window.open(this.url); | 319 window.open(this.url); |
| 318 } | 320 } |
| 319 | 321 |
| 320 }); | 322 }); |
| 321 </script> | 323 </script> |
| 322 </dom-module> | 324 </dom-module> |
| OLD | NEW |