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

Side by Side Diff: appengine/config_service/ui/src/config-ui/front-page.html

Issue 2978003002: config_service: add a popup for icons and make cards more compact. (Closed)
Patch Set: 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/app-layout/app-layout.html"> 7 <link rel="import" href="../../bower_components/app-layout/app-layout.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/paper-button/paper-button.html"> 9 <link rel="import" href="../../bower_components/paper-button/paper-button.html">
10 <link rel="import" href="../../bower_components/paper-search/paper-search-bar.ht ml"> 10 <link rel="import" href="../../bower_components/paper-search/paper-search-bar.ht ml">
(...skipping 21 matching lines...) Expand all
32 to {opacity: 1} 32 to {opacity: 1}
33 } 33 }
34 34
35 .loading { text-align: center; } 35 .loading { text-align: center; }
36 36
37 .search-bar { 37 .search-bar {
38 padding-top: 7%; 38 padding-top: 7%;
39 padding-bottom: 2%; 39 padding-bottom: 2%;
40 } 40 }
41 41
42 .name {
43 font-family: sans-serif;
44 word-wrap: break-word;
45 text-align: center;
46 }
47
42 paper-search-bar { 48 paper-search-bar {
43 @apply --shadow-elevation-4dp; 49 @apply --shadow-elevation-4dp;
44 width: 40%; 50 width: 40%;
45 height: 100%; 51 height: 100%;
46 margin: auto; 52 margin: auto;
47 } 53 }
48 </style> 54 </style>
49 55
50 <iron-ajax 56 <iron-ajax
51 auto 57 auto
(...skipping 11 matching lines...) Expand all
63 </div> 69 </div>
64 70
65 <div class="config-list"> 71 <div class="config-list">
66 <template is="dom-if" if="[[isLoading]]"> 72 <template is="dom-if" if="[[isLoading]]">
67 <div class="center loading"> 73 <div class="center loading">
68 <paper-spinner active></paper-spinner> 74 <paper-spinner active></paper-spinner>
69 </div> 75 </div>
70 </template> 76 </template>
71 <template is="dom-if" if="[[_not(isLoading)]]"> 77 <template is="dom-if" if="[[_not(isLoading)]]">
72 <template is="dom-if" if="[[_isEmpty(searchResults)]]"> 78 <template is="dom-if" if="[[_isEmpty(searchResults)]]">
73 <div class="center">No config sets found.</div> 79 <div class="center name">No config sets found.</div>
74 </template> 80 </template>
75 <template is="dom-if" if="[[_not(_isEmpty(searchResults))]]"> 81 <template is="dom-if" if="[[_not(_isEmpty(searchResults))]]">
76 <template is="dom-repeat" items="[[searchResults]]" as="config"> 82 <template is="dom-repeat" items="[[searchResults]]" as="config">
77 <div class="center config-card"> 83 <div class="center config-card">
78 <config-set-card 84 <config-set-card
79 name="[[config.config_set]]" 85 name="[[config.config_set]]"
80 last-import-attempt="[[_getLastImportAttempt(config.last_impor t_attempt)]]"> 86 last-import-attempt="[[_getLastImportAttempt(config.last_impor t_attempt)]]">
81 </config-set-card> 87 </config-set-card>
82 </div> 88 </div>
83 </template> 89 </template>
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 var tempResults = this.configSetList.filter(e => e.config_set.includes(t his.query)); 152 var tempResults = this.configSetList.filter(e => e.config_set.includes(t his.query));
147 tempResults.sort(function(a, b) { 153 tempResults.sort(function(a, b) {
148 return this._formatName(a.config_set).localeCompare(this._formatName(b .config_set)); 154 return this._formatName(a.config_set).localeCompare(this._formatName(b .config_set));
149 }.bind(this)); 155 }.bind(this));
150 this.searchResults = tempResults; 156 this.searchResults = tempResults;
151 }, 157 },
152 158
153 }); 159 });
154 </script> 160 </script>
155 </dom-module> 161 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698