| OLD | NEW |
| 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/polymer/polymer.html"> | 7 <link rel="import" href="../../bower_components/polymer/polymer.html"> |
| 8 <link rel="import" href="../../bower_components/app-layout/app-layout.html"> | 8 <link rel="import" href="../../bower_components/app-layout/app-layout.html"> |
| 9 <link rel="import" href="../../bower_components/paper-search/paper-search-bar.ht
ml"> | 9 <link rel="import" href="../../bower_components/paper-search/paper-search-bar.ht
ml"> |
| 10 <link rel="import" href="../../bower_components/app-route/app-location.html"> | 10 <link rel="import" href="../../bower_components/app-route/app-location.html"> |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 <app-route route="{{route}}" | 63 <app-route route="{{route}}" |
| 64 pattern="/" | 64 pattern="/" |
| 65 active="{{frontPageActive}}"></app-route> | 65 active="{{frontPageActive}}"></app-route> |
| 66 | 66 |
| 67 <div hidden$="[[!frontPageActive]]"> | 67 <div hidden$="[[!frontPageActive]]"> |
| 68 <front-page></front-page> | 68 <front-page></front-page> |
| 69 </div> | 69 </div> |
| 70 | 70 |
| 71 <div hidden$="[[!serviceActive]]"> | 71 <div hidden$="[[!serviceActive]]"> |
| 72 <config-set category="services" | 72 <config-set category="services" |
| 73 config-set-name="{{serviceData.serviceName}}" | 73 name="{{serviceData.serviceName}}" |
| 74 route="{{serviceTail}}"></config-set> | 74 route="{{serviceTail}}"></config-set> |
| 75 </div> | 75 </div> |
| 76 | 76 |
| 77 <div hidden$="[[!projectActive]]"> | 77 <div hidden$="[[!projectActive]]"> |
| 78 <config-set category="projects" | 78 <config-set category="projects" |
| 79 config-set-name="{{projectData.projectName}}" | 79 name="{{projectData.projectName}}" |
| 80 route="{{projectTail}}"></config-set> | 80 route="{{projectTail}}"></config-set> |
| 81 </div> | 81 </div> |
| 82 | 82 |
| 83 </template> | 83 </template> |
| 84 | 84 |
| 85 <script> | 85 <script> |
| 86 Polymer({ | 86 Polymer({ |
| 87 is: 'config-ui', | 87 is: 'config-ui', |
| 88 | 88 |
| 89 ready: function() { | 89 ready: function() { |
| 90 this.async(function() { | 90 this.async(function() { |
| 91 // If the path is blank, redirect to / | 91 // If the path is blank, redirect to / |
| 92 if (!this.route.path) { | 92 if (!this.route.path) { |
| 93 this.set('route.path', '/'); | 93 this.set('route.path', '/'); |
| 94 } | 94 } |
| 95 }); | 95 }); |
| 96 }, | 96 }, |
| 97 | 97 |
| 98 }); | 98 }); |
| 99 </script> | 99 </script> |
| 100 </dom-module> | 100 </dom-module> |
| OLD | NEW |