| OLD | NEW |
| (Empty) | |
| 1 <!-- |
| 2 Copyright 2017 The LUCI Authors. All rights reserved. |
| 3 Use of this source code is governed under the Apache License, Version 2.0 |
| 4 that can be found in the LICENSE file. |
| 5 --> |
| 6 |
| 7 <link rel="import" href="../../bower_components/paper-item/paper-item.html"> |
| 8 <link rel="import" href="../../bower_components/polymer/polymer.html"> |
| 9 |
| 10 <dom-module id="config-file-card"> |
| 11 <template> |
| 12 <style> |
| 13 .center { |
| 14 margin: auto; |
| 15 width: 25%; |
| 16 border-style: solid; |
| 17 border-width: 2px; |
| 18 } |
| 19 </style> |
| 20 |
| 21 <paper-item class="center"> |
| 22 <!-- TODO(cwpayton): Currently, each card contains a link to the |
| 23 corresponding file in gitiles. We would like to pretty print the |
| 24 contents of the file in the UI instead of externally linking. --> |
| 25 <a href="[[link]]">[[name]]</a> |
| 26 </paper-item> |
| 27 </template> |
| 28 <script> |
| 29 Polymer({ |
| 30 is: "config-file-card", |
| 31 |
| 32 properties: { |
| 33 name: { |
| 34 type: String |
| 35 }, |
| 36 |
| 37 link: { |
| 38 type: String |
| 39 } |
| 40 } |
| 41 }); |
| 42 </script> |
| 43 </dom-module> |
| OLD | NEW |