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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: Tools/AutoSheriff/ui/nb-changelogs.html
diff --git a/Tools/AutoSheriff/ui/nb-changelogs.html b/Tools/AutoSheriff/ui/nb-changelogs.html
new file mode 100644
index 0000000000000000000000000000000000000000..64ce770a4db6f31a4f2b58fb1c35610ec3d4af16
--- /dev/null
+++ b/Tools/AutoSheriff/ui/nb-changelogs.html
@@ -0,0 +1,37 @@
+<polymer-element name="nb-changelogs" attributes="revision_names passing failing">
+ <template>
+ <template if="{{passing}}">
+ <template repeat="{{ name in revision_names }}">
+ <template if="{{name | commits_differ(passing, failing) }}">
ojan 2014/07/22 02:01:27 Spacing.
+ <a href='{{ name | changelog_url(passing, failing) }}' title='{{ name | commit_id(passing) }}:{{ name | commit_id(failing)}}'>{{ name | short_name }}</a>
+ </template>
+ </template>
+ </template>
+ <template if="{{ !passing }}">
+ before
ojan 2014/07/22 02:01:27 Indentation.
+ <template repeat="{{ name in revision_names }}">
+ <a href="{{ name | change_url(failing) }}">{{ name | short_name }}</a>
+ </template>
+ </template>
+ </template>
+ <script>
+ Polymer('nb-changelogs', {
+ failingChanged: function() {
+ this.revision_names = Object.keys(this.failing);
+ },
+ commits_differ: function(name, passing, failing) {
+ return passing[name] != failing[name];
+ },
+ changelog_url: function(name, passing, failing) {
+ return repositories.changelog_url(name, passing[name], failing[name]);
+ },
+ commit_id: function(name, revisions_dict) {
+ return revisions_dict[name];
+ },
+ change_url: function(name, revisions_dict) {
+ return repositories.change_url(name, revisions_dict[name]);
+ },
+ short_name: repositories.short_name,
+ });
+ </script>
+</polymer-element>

Powered by Google App Engine
This is Rietveld 408576698