Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Side by Side Diff: appengine/config_service/ui/src/config-ui/config-file-card.html

Issue 2959833002: config_service: add last import validation and tests (Closed)
Patch Set: Include a bug number for making the element call on-response handler automatically. Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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-file-card"> 12 <dom-module id="config-file-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"> 28 <paper-item class="center">
22 <!-- TODO(cwpayton): Currently, each card contains a link to the 29 <!-- TODO(cwpayton): Currently, each card contains a link to the
23 corresponding file in gitiles. We would like to pretty print the 30 corresponding file in gitiles. We would like to pretty print the
24 contents of the file in the UI instead of externally linking. --> 31 contents of the file in the UI instead of externally linking. -->
25 <a href="[[link]]">[[name]]</a> 32 <div class="horizontal layout wrap" style="width: 100%">
33 [[name]]
34 <iron-icon icon="icons:link" on-tap="_handleClick"></iron-icon>
35 </div>
36
26 </paper-item> 37 </paper-item>
27 </template> 38 </template>
28 <script> 39 <script>
29 Polymer({ 40 Polymer({
30 is: "config-file-card", 41 is: "config-file-card",
31 42
32 properties: { 43 properties: {
33 name: { 44 name: {
34 type: String 45 type: String
35 }, 46 },
36 47
37 link: { 48 link: {
38 type: String 49 type: String
39 } 50 }
40 } 51 },
52
53 _handleClick: function(event) {
54 window.location = this.link;
55 },
56
41 }); 57 });
42 </script> 58 </script>
43 </dom-module> 59 </dom-module>
OLDNEW
« no previous file with comments | « appengine/config_service/app.yaml ('k') | appengine/config_service/ui/src/config-ui/config-set.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698