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

Side by Side Diff: dashboard/dashboard/elements/speed-releasing-page.html

Issue 2619883003: More structure for speed releasing. (Closed)
Patch Set: response to comments Created 3 years, 11 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright 2017 The Chromium Authors. All rights reserved. 3 Copyright 2017 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 7
8 <link type="text/css" rel="stylesheet" href="/dashboard/static/base.css"> 8 <link type="text/css" rel="stylesheet" href="/dashboard/static/base.css">
9 9
10 <link rel="import" href="/components/paper-button/paper-button.html"> 10 <link rel="import" href="/components/paper-button/paper-button.html">
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 </style> 43 </style>
44 <template is="dom-if" if="{{loading}}"> 44 <template is="dom-if" if="{{loading}}">
45 <div id="loading-spinner"><img src="//www.google.com/images/loading.gif">< /div> 45 <div id="loading-spinner"><img src="//www.google.com/images/loading.gif">< /div>
46 </template> 46 </template>
47 <template is="dom-if" if="{{!loading}}"> 47 <template is="dom-if" if="{{!loading}}">
48 <template is="dom-if" if="{{error}}"> 48 <template is="dom-if" if="{{error}}">
49 <div class="error">{{error}}</div> 49 <div class="error">{{error}}</div>
50 </template> 50 </template>
51 <template is="dom-if" if="{{!error}}"> 51 <template is="dom-if" if="{{!error}}">
52 <div id="content"> 52 <div id="content">
53 <p>Coming soon.</p> 53 <p>{{tableBots}}<br>{{tableTests}}<br>{{tableLayout}}</p>
54 </div> 54 </div>
55 </template> 55 </template>
56 </template> 56 </template>
57 </template> 57 </template>
58 <script> 58 <script>
59 'use strict'; 59 'use strict';
60 Polymer({ 60 Polymer({
61 61
62 is: 'speed-releasing-page', 62 is: 'speed-releasing-page',
63 properties: { 63 properties: {
64 loading: { 64 loading: {
65 type: Boolean, 65 type: Boolean,
66 value: false, 66 value: false,
67 notify: true 67 notify: true
68 }, 68 },
69 error: { 69 error: {
70 type: String, 70 type: String,
71 value: '', 71 value: '',
72 notify: true 72 notify: true
73 }, 73 },
74 xsrfToken: { 74 xsrfToken: {
75 type: String, 75 type: String,
76 value: '' 76 value: ''
77 }, 77 },
78 tableBots: {
79 type: String,
80 },
81 tableTests: {
82 type: String,
83 },
84 tableLayout: {
85 type: String,
86 },
78 }, 87 },
79 88
80 ready: function() { 89 ready: function() {
81 var params = {}; 90 var params = {};
82 simple_xhr.send('/speed_releasing', params, 91 var path = window.location.pathname.split('/')[2];
92 simple_xhr.send('/speed_releasing/' + path, params,
83 function(response) { 93 function(response) {
84 this.xsrfToken = response['xsrf_token']; 94 this.xsrfToken = response['xsrf_token'];
85 this.loading = false; 95 this.loading = false;
96 this.tableBots = response['table_bots'];
97 this.tableTests = response['table_tests'];
98 this.tableLayout = response['table_layout'];
86 }.bind(this), 99 }.bind(this),
87 function(msg) { 100 function(msg) {
88 this.error = msg; 101 this.error = msg;
89 this.loading = false; 102 this.loading = false;
90 }.bind(this)); 103 }.bind(this));
91 } 104 }
92 105
93 }); 106 });
94 </script> 107 </script>
95 </dom-module> 108 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698