| Index: appengine/config_service/ui/src/config-ui/config-file-card.html
|
| diff --git a/appengine/config_service/ui/src/config-ui/config-file-card.html b/appengine/config_service/ui/src/config-ui/config-file-card.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c25623f50be0935f509531b3fab5367122a97a35
|
| --- /dev/null
|
| +++ b/appengine/config_service/ui/src/config-ui/config-file-card.html
|
| @@ -0,0 +1,43 @@
|
| +<!--
|
| + Copyright 2017 The LUCI Authors. All rights reserved.
|
| + Use of this source code is governed under the Apache License, Version 2.0
|
| + that can be found in the LICENSE file.
|
| +-->
|
| +
|
| +<link rel="import" href="../../bower_components/paper-item/paper-item.html">
|
| +<link rel="import" href="../../bower_components/polymer/polymer.html">
|
| +
|
| +<dom-module id="config-file-card">
|
| + <template>
|
| + <style>
|
| + .center {
|
| + margin: auto;
|
| + width: 25%;
|
| + border-style: solid;
|
| + border-width: 2px;
|
| + }
|
| + </style>
|
| +
|
| + <paper-item class="center">
|
| + <!-- TODO(cwpayton): Currently, each card contains a link to the
|
| + corresponding file in gitiles. We would like to pretty print the
|
| + contents of the file in the UI instead of externally linking. -->
|
| + <a href="[[link]]">[[name]]</a>
|
| + </paper-item>
|
| + </template>
|
| + <script>
|
| + Polymer({
|
| + is: "config-file-card",
|
| +
|
| + properties: {
|
| + name: {
|
| + type: String
|
| + },
|
| +
|
| + link: {
|
| + type: String
|
| + }
|
| + }
|
| + });
|
| + </script>
|
| +</dom-module>
|
|
|