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

Side by Side Diff: appengine/swarming/ui/res/imp/botpage/bot-page.html

Issue 2470973003: give user notification if bot or task not found (Closed)
Patch Set: rebase Created 4 years, 1 month 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 2016 The LUCI Authors. All rights reserved. 2 Copyright 2016 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 This in an HTML Import-able file that contains the definition 6 This in an HTML Import-able file that contains the definition
7 of the following elements: 7 of the following elements:
8 8
9 <bot-page> 9 <bot-page>
10 10
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 <h2 hidden$="[[_signed_in]]">You must sign in to see anything useful.</h2> 123 <h2 hidden$="[[_signed_in]]">You must sign in to see anything useful.</h2>
124 124
125 <div hidden$="[[_not(_signed_in)]]"> 125 <div hidden$="[[_not(_signed_in)]]">
126 126
127 <bot-page-data 127 <bot-page-data
128 id="data" 128 id="data"
129 auth_headers="[[_auth_headers]]" 129 auth_headers="[[_auth_headers]]"
130 bot_id="[[bot_id]]" 130 bot_id="[[bot_id]]"
131 131
132 bot="{{_bot}}" 132 bot="{{_bot}}"
133 bot_exists="{{_bot_exists}}"
133 busy="{{_busy1}}" 134 busy="{{_busy1}}"
134 events="{{_events}}" 135 events="{{_events}}"
135 tasks="{{_tasks}}" 136 tasks="{{_tasks}}"
136 on-reload="_clearAndReload"> 137 on-reload="_clearAndReload">
137 </bot-page-data> 138 </bot-page-data>
138 139
139 <div class="header horizontal layout"> 140 <div class="header horizontal layout">
140 <paper-input class="id_input" label="Bot id" value="{{bot_id}}"></pape r-input> 141 <paper-input class="id_input" label="Bot id" value="{{bot_id}}"></pape r-input>
141 <template is="dom-if" if="[[_ccLink(_bot)]]"> 142 <template is="dom-if" if="[[_ccLink(_bot)]]">
142 <div class="vertical layout"> 143 <div class="vertical layout">
143 <a href$="[[_ccLink(_bot)]]" class="cloud">Cloud Console</a> 144 <a href$="[[_ccLink(_bot)]]" class="cloud">Cloud Console</a>
144 </div> 145 </div>
145 </template> 146 </template>
146 <button on-click="_refresh"> 147 <button on-click="_refresh">
147 <iron-icon class="refresh" icon="icons:refresh"></iron-icon> 148 <iron-icon class="refresh" icon="icons:refresh"></iron-icon>
148 </button> 149 </button>
149 </div> 150 </div>
151 </div>
150 152
153 <h2 hidden$="[[_bot_exists]]">Bot not found.</h2>
154
155 <div hidden$="[[_not(_bot_exists)]]">
151 <div class="horizontal wrap layout"> 156 <div class="horizontal wrap layout">
152 <div class="flex"> 157 <div class="flex">
153 <table> 158 <table>
154 <tr class$="[[_isDead(_bot)]]" title="Last time the bot contacted the server."> 159 <tr class$="[[_isDead(_bot)]]" title="Last time the bot contacted the server.">
155 <td>Last Seen</td> 160 <td>Last Seen</td>
156 <td title="[[_bot.human_last_seen_ts]]"> 161 <td title="[[_bot.human_last_seen_ts]]">
157 [[_timeDiffExact(_bot.last_seen_ts)]] ago</td> 162 [[_timeDiffExact(_bot.last_seen_ts)]] ago</td>
158 <td> 163 <td>
159 <!-- dom-ifs are slightly less performant than hidden$=, but 164 <!-- dom-ifs are slightly less performant than hidden$=, but
160 prevent things from first drawing and then hiding. We prefer to 165 prevent things from first drawing and then hiding. We prefer to
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 }, 609 },
605 610
606 _toggleState: function() { 611 _toggleState: function() {
607 this.set("_show_state", !this._show_state); 612 this.set("_show_state", !this._show_state);
608 } 613 }
609 614
610 }); 615 });
611 })(); 616 })();
612 </script> 617 </script>
613 </dom-module> 618 </dom-module>
OLDNEW
« no previous file with comments | « appengine/swarming/ui/package.json ('k') | appengine/swarming/ui/res/imp/botpage/bot-page-data.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698