OLD | NEW |
---|---|
(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> | |
OLD | NEW |