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

Side by Side Diff: Tools/GardeningServer/ui/ct-revision-details.html

Issue 410483002: Add the revision details widget to sheriff-o-matic (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Spaces in the curlies! Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!--
2 Copyright 2014 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file.
5 -->
6 <link href="../bower_components/core-icons/core-icons.html" rel="import">
7 <link href="../bower_components/paper-item/paper-item.html" rel="import">
8 <link href="../model/ct-builder-revisions.html" rel="import">
9 <link href="ct-popup-menu.html" rel="import">
10
11 <polymer-element name="ct-revision-details" attributes="builderLatestRevisions r evisionLog tree">
12 <template>
13 <style>
14 :host {
15 padding-left: 2em;
16 }
17 ct-popup-menu > div {
18 display: flex;
19 justify-content: space-between;
20 }
21 .menuRevision {
22 padding-left: 2em;
23 }
24 </style>
25 <!-- FIXME: Stop special casing the blink tree. -->
26 <template if="{{ _sortedBuilders.length && tree == 'blink' }}">
27 Latest revision processed by every bot:
28 <a id="fullyProcessedRevision" href="{{ _fullyProcessedRevision.url }}">{{ _fullyProcessedRevision.revision }}</a>
29 <ct-popup-menu icon="arrow-drop-down">
30 <template repeat="{{builder in _sortedBuilders}}">
31 <div>
32 <div>
33 {{ builder }}
34 </div>
35 <div class="menuRevision">
36 <a href="{{ builderLatestRevisions[builder].url }}">{{ builderLate stRevisions[builder].revision }}</a>
37 </div>
38 </div>
39 </template>
40 </ct-popup-menu>
41 trunk is at <a id="trunkRevision" href="{{ revisionLog.commits.blink[revis ionLog.lastRevision['blink']].url }}">{{ revisionLog.lastRevision['blink'] }}</a >
42 </template>
43 </template>
44 <script>
45 Polymer({
46 _sortedBuilders: [],
47 _fullyProcessedRevision: null,
48 builderLatestRevisions: null,
49
50 builderLatestRevisionsChanged: function() {
51 // Get the list of builders sorted with the most out-of-date one first.
52 var sortedBuilders = Object.keys(this.builderLatestRevisions);
53 sortedBuilders.sort(function (a, b) { return this.builderLatestRevisions [a].revision - this.builderLatestRevisions[b].revision;}.bind(this));
54
55 this._sortedBuilders = sortedBuilders;
56 this._fullyProcessedRevision = this.builderLatestRevisions[sortedBuilder s[0]];
57 },
58 });
59 </script>
60 </polymer-element>
OLDNEW
« no previous file with comments | « Tools/GardeningServer/ui/ct-popup-menu.html ('k') | Tools/GardeningServer/ui/ct-revision-details-tests.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698