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

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

Issue 2936423002: config_service: add routing for config-set page. (Closed)
Patch Set: Remove UI handler. Created 3 years, 6 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
(Empty)
1 <!--
2 Copyright 2017 The LUCI Authors. All rights reserved.
3 Use of this source code is governed under the Apache License, Version 2.0
4 that can be found in the LICENSE file.
5 -->
6
7 <link rel="import" href="../../bower_components/polymer/polymer.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">
10 <link rel="import" href="../../bower_components/app-route/app-location.html">
11 <link rel="import" href="../../bower_components/app-route/app-route.html">
12
13 <link rel="import" href="config-set.html">
14 <link rel="import" href="front-page.html">
15
16 <dom-module id="config-ui">
17 <template>
18 <style>
19 app-toolbar {
20 background-color: #efefef;
21 color: #232323;
22 }
23
24 app-header {
25 @apply --layout-fixed-top;
26 }
27
28 .logo {
29 height: 100%;
30 }
31
32 .title {
33 padding-left: 1%;
34 padding-bottom: 0.5%;
35 font-size: 150%;
36 font-family: sans-serif;
37 }
38 </style>
39
40 <app-header reveals>
41 <app-toolbar>
42 <image class="logo" src="/static/images/chromium.png"/>
43 <div class="title" main-title>
44 Configuration Service (not fully implemented)
45 </div>
46 </app-toolbar>
47 </app-header>
48
49
50 <app-location route="{{route}}" use-hash-as-path></app-location>
51 <app-route route="{{route}}"
52 pattern="/services/:serviceName"
53 data="{{serviceData}}"
54 tail="{{serviceTail}}"
55 active="{{serviceActive}}"></app-route>
56
57 <app-route route="{{route}}"
58 pattern="/projects/:projectName"
59 data="{{projectData}}"
60 tail="{{projectTail}}"
61 active="{{projectActive}}"></app-route>-->
62
63 <app-route route="{{route}}"
64 pattern="/"
65 active="{{frontPageActive}}"></app-route>
66
67 <div hidden$="[[!frontPageActive]]">
68 <front-page></front-page>
69 </div>
70
71 <div hidden$="[[!serviceActive]]">
72 <config-set category="services"
73 config-set-name="{{serviceData.serviceName}}"
74 route="{{serviceTail}}"></config-set>
75 </div>
76
77 <div hidden$="[[!projectActive]]">
78 <config-set category="projects"
79 config-set-name="{{projectData.projectName}}"
80 route="{{projectTail}}"></config-set>
81 </div>
82
83 </template>
84
85 <script>
86 Polymer({
87 is: 'config-ui',
88
89 ready: function() {
90 this.async(function() {
91 // If the path is blank, redirect to /
92 if (!this.route.path) {
93 this.set('route.path', '/');
94 }
95 });
96 },
97
98 });
99 </script>
100 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698