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

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

Issue 2983103002: config_service: release the UI to the front page (Closed)
Patch Set: Release the UI to the front page 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 </div> 74 </div>
75 </template> 75 </template>
76 <template is="dom-if" if="[[_not(isLoading)]]"> 76 <template is="dom-if" if="[[_not(isLoading)]]">
77 <template is="dom-if" if="[[_isEmpty(searchResults)]]"> 77 <template is="dom-if" if="[[_isEmpty(searchResults)]]">
78 <div class="center name">No config sets found.</div> 78 <div class="center name">No config sets found.</div>
79 </template> 79 </template>
80 <template is="dom-if" if="[[_not(_isEmpty(searchResults))]]"> 80 <template is="dom-if" if="[[_not(_isEmpty(searchResults))]]">
81 <template is="dom-repeat" items="[[searchResults]]" as="config"> 81 <template is="dom-repeat" items="[[searchResults]]" as="config">
82 <div class="center config-card"> 82 <div class="center config-card">
83 <config-set-card 83 <config-set-card
84 name="[[config.config_set]]" 84 name="[[config.config_set]]"
85 last-import-attempt="[[_getLastImportAttempt(config.last_impor t_attempt)]]"> 85 last-import-attempt="[[_getLastImportAttempt(config.last_import_ attempt)]]">
86 </config-set-card> 86 </config-set-card>
87 </div> 87 </div>
88 </template> 88 </template>
89 </template> 89 </template>
90 </template> 90 </template>
91 </div> 91 </div>
92 </template> 92 </template>
93 <script> 93 <script>
94 Polymer({ 94 Polymer({
95 is: 'front-page', 95 is: 'front-page',
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 var tempResults = this.configSetList.filter(e => e.config_set.includes(t his.query)); 159 var tempResults = this.configSetList.filter(e => e.config_set.includes(t his.query));
160 tempResults.sort(function(a, b) { 160 tempResults.sort(function(a, b) {
161 return this._formatName(a.config_set).localeCompare(this._formatName(b .config_set)); 161 return this._formatName(a.config_set).localeCompare(this._formatName(b .config_set));
162 }.bind(this)); 162 }.bind(this));
163 this.searchResults = tempResults; 163 this.searchResults = tempResults;
164 }, 164 },
165 165
166 }); 166 });
167 </script> 167 </script>
168 </dom-module> 168 </dom-module>
OLDNEW
« no previous file with comments | « appengine/config_service/ui/src/config-ui/config-ui.html ('k') | appengine/config_service/ui/static/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698