| OLD | NEW |
| 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 <swarming-index> | 9 <swarming-index> |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 background-color: #f5f5f5; | 42 background-color: #f5f5f5; |
| 43 border: 1px solid #ccc; | 43 border: 1px solid #ccc; |
| 44 border-radius: 4px; | 44 border-radius: 4px; |
| 45 } | 45 } |
| 46 </style> | 46 </style> |
| 47 | 47 |
| 48 <swarming-app | 48 <swarming-app |
| 49 client_id="[[client_id]]" | 49 client_id="[[client_id]]" |
| 50 auth_headers="{{_auth_headers}}" | 50 auth_headers="{{_auth_headers}}" |
| 51 permissions="{{_permissions}}" | 51 permissions="{{_permissions}}" |
| 52 server_version="{{_server_version}}" | 52 server_details="{{_server_details}}" |
| 53 name="Swarming Server" | 53 name="Swarming Server" |
| 54 busy="[[_or(_busy1,busy2)]]"> | 54 busy="[[_or(_busy1,busy2)]]"> |
| 55 | 55 |
| 56 <h2>Service Status</h2> | 56 <h2>Service Status</h2> |
| 57 <div>Server Version: [[_server_version.server_version]]</div> | 57 <div>Server Version: [[_server_details.server_version]]</div> |
| 58 <div>Bot Version: [[_server_version.bot_version]]</div> | 58 <div>Bot Version: [[_server_details.bot_version]]</div> |
| 59 <ul> | 59 <ul> |
| 60 <li> | 60 <li> |
| 61 <!-- TODO(kjlubick) convert these linked pages to Polymer--> | 61 <!-- TODO(kjlubick) convert these linked pages to Polymer--> |
| 62 <a href="/stats">Usage statistics</a> | 62 <a href="/stats">Usage statistics</a> |
| 63 </li> | 63 </li> |
| 64 <li> | 64 <li> |
| 65 <a href="/restricted/mapreduce/status">Map Reduce Jobs</a> | 65 <a href="/restricted/mapreduce/status">Map Reduce Jobs</a> |
| 66 </li> | 66 </li> |
| 67 <li> | 67 <li> |
| 68 <a href$="[[_makeInstancesUrl(_server_version,_project_id)]]">View ver
sion's instances on Cloud Console</a> | 68 <a href$="[[_makeInstancesUrl(_server_details,_project_id)]]">View ver
sion's instances on Cloud Console</a> |
| 69 </li> | 69 </li> |
| 70 <li> | 70 <li> |
| 71 <a><a href$="[[_makeErrorUrl(_project_id)]]">View server errors on Clo
ud Console</a></a> | 71 <a><a href$="[[_makeErrorUrl(_project_id)]]">View server errors on Clo
ud Console</a></a> |
| 72 </li> | 72 </li> |
| 73 <li> | 73 <li> |
| 74 <a><a href$="[[_makeLogUrl(_project_id)]]">View logs for HTTP 5xx on C
loud Console</a></a> | 74 <a><a href$="[[_makeLogUrl(_project_id)]]">View logs for HTTP 5xx on C
loud Console</a></a> |
| 75 </li> | 75 </li> |
| 76 </ul> | 76 </ul> |
| 77 | 77 |
| 78 <h2>Configuration</h2> | 78 <h2>Configuration</h2> |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 _permissions: { | 163 _permissions: { |
| 164 type: Object, | 164 type: Object, |
| 165 }, | 165 }, |
| 166 _project_id: { | 166 _project_id: { |
| 167 type: String, | 167 type: String, |
| 168 value: function() { | 168 value: function() { |
| 169 var idx = location.hostname.indexOf(".appspot.com"); | 169 var idx = location.hostname.indexOf(".appspot.com"); |
| 170 return location.hostname.substring(0, idx); | 170 return location.hostname.substring(0, idx); |
| 171 }, | 171 }, |
| 172 }, | 172 }, |
| 173 _server_version: { | 173 _server_details: { |
| 174 type: Object, | 174 type: Object, |
| 175 }, | 175 }, |
| 176 }, | 176 }, |
| 177 | 177 |
| 178 observers: ["_fetchBootstrap(_permissions,_auth_headers)"], | 178 observers: ["_fetchBootstrap(_permissions,_auth_headers)"], |
| 179 | 179 |
| 180 | 180 |
| 181 _cannotBootstrap: function(permissions) { | 181 _cannotBootstrap: function(permissions) { |
| 182 return !(permissions && permissions.get_bootstrap_token); | 182 return !(permissions && permissions.get_bootstrap_token); |
| 183 }, | 183 }, |
| (...skipping 24 matching lines...) Expand all Loading... |
| 208 }, | 208 }, |
| 209 | 209 |
| 210 _makeLogUrl: function(project_id) { | 210 _makeLogUrl: function(project_id) { |
| 211 return "https://pantheon.corp.google.com/logs/viewer?filters=text:status
:500..599&project="+ | 211 return "https://pantheon.corp.google.com/logs/viewer?filters=text:status
:500..599&project="+ |
| 212 project_id; | 212 project_id; |
| 213 }, | 213 }, |
| 214 | 214 |
| 215 }); | 215 }); |
| 216 </script> | 216 </script> |
| 217 </dom-module> | 217 </dom-module> |
| OLD | NEW |