| 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="../../bower_components/paper-item/paper-item.html"> | 7 <link rel="import" href="../../bower_components/paper-item/paper-item.html"> |
| 8 <link rel="import" href="../../bower_components/polymer/polymer.html"> | 8 <link rel="import" href="../../bower_components/polymer/polymer.html"> |
| 9 <link rel="import" href="../../bower_components/iron-icons/maps-icons.html"> |
| 10 <link rel="import" href="../../bower_components/iron-flex-layout/iron-flex-layou
t.html"> |
| 9 | 11 |
| 10 <dom-module id="config-set-card"> | 12 <dom-module id="config-set-card"> |
| 11 <template> | 13 <template> |
| 12 <style> | 14 <style include="iron-flex iron-flex-alignment"> |
| 13 .center { | 15 .center { |
| 14 margin: auto; | 16 margin: auto; |
| 15 width: 25%; | 17 width: 25%; |
| 16 border-style: solid; | 18 border-style: solid; |
| 17 border-width: 2px; | 19 border-width: 2px; |
| 18 } | 20 } |
| 21 |
| 22 iron-icon { |
| 23 float: right; |
| 24 } |
| 25 |
| 19 </style> | 26 </style> |
| 20 | 27 |
| 21 <paper-item class="center" id="paper-box"> | 28 <paper-item class="center" id="paper-box"> |
| 22 <!-- TODO(cwpayton): Add launch icon next to the name of the config | 29 <!-- TODO(cwpayton): Add launch icon next to the name of the config |
| 23 so that upon clicking the icon, the user will be taken to the config | 30 so that upon clicking the icon, the user will be taken to the config |
| 24 set page. --> | 31 set page. --> |
| 25 [[name]] | 32 <div class="horizontal layout wrap" style="width: 100%"> |
| 33 [[name]] |
| 34 <template is="dom-if" if="[[lastImportAttempt]]" restamp="true"> |
| 35 <template is="dom-if" if="[[lastImportAttempt.success]]" restamp="true
"> |
| 36 <iron-icon icon="icons:check-circle"></iron-icon> |
| 37 </template> |
| 38 <template is="dom-if" if="[[_not(lastImportAttempt.success)]]" restamp
="true"> |
| 39 <iron-icon icon="icons:warning"></iron-icon> |
| 40 </template> |
| 41 </template> |
| 42 <template is="dom-if" if="[[_not(lastImportAttempt)]]" restamp="true"> |
| 43 <iron-icon icon="icons:help"></iron-icon> |
| 44 </template> |
| 45 </div> |
| 26 </paper-item> | 46 </paper-item> |
| 27 </template> | 47 </template> |
| 28 <script> | 48 <script> |
| 29 Polymer({ | 49 Polymer({ |
| 30 is: "config-set-card", | 50 is: "config-set-card", |
| 31 | 51 |
| 32 properties: { | 52 properties: { |
| 53 |
| 33 name: { | 54 name: { |
| 34 type: String | 55 type: String |
| 35 } | 56 }, |
| 36 } | 57 |
| 58 lastImportAttempt: { |
| 59 type: Object |
| 60 }, |
| 61 |
| 62 }, |
| 63 |
| 64 _not: function(b) { |
| 65 return !b; |
| 66 }, |
| 37 | 67 |
| 38 }); | 68 }); |
| 39 </script> | 69 </script> |
| 40 </dom-module> | 70 </dom-module> |
| 41 | 71 |
| OLD | NEW |