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

Side by Side Diff: Tools/AutoSheriff/ui/nb-changelogs.html

Issue 398823008: WIP: Add auto-sheriff.appspot.com code to Blink Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 <polymer-element name="nb-changelogs" attributes="revision_names passing failing ">
2 <template>
3 <template if="{{passing}}">
4 <template repeat="{{ name in revision_names }}">
5 <template if="{{name | commits_differ(passing, failing) }}">
ojan 2014/07/22 02:01:27 Spacing.
6 <a href='{{ name | changelog_url(passing, failing) }}' title='{{ name | commit_id(passing) }}:{{ name | commit_id(failing)}}'>{{ name | short_name }}< /a>
7 </template>
8 </template>
9 </template>
10 <template if="{{ !passing }}">
11 before
ojan 2014/07/22 02:01:27 Indentation.
12 <template repeat="{{ name in revision_names }}">
13 <a href="{{ name | change_url(failing) }}">{{ name | short_name }}</a>
14 </template>
15 </template>
16 </template>
17 <script>
18 Polymer('nb-changelogs', {
19 failingChanged: function() {
20 this.revision_names = Object.keys(this.failing);
21 },
22 commits_differ: function(name, passing, failing) {
23 return passing[name] != failing[name];
24 },
25 changelog_url: function(name, passing, failing) {
26 return repositories.changelog_url(name, passing[name], failing[name]);
27 },
28 commit_id: function(name, revisions_dict) {
29 return revisions_dict[name];
30 },
31 change_url: function(name, revisions_dict) {
32 return repositories.change_url(name, revisions_dict[name]);
33 },
34 short_name: repositories.short_name,
35 });
36 </script>
37 </polymer-element>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698