| Index: Tools/GardeningServer/ui/ct-commit-list.html
|
| diff --git a/Tools/GardeningServer/ui/ct-commit-list.html b/Tools/GardeningServer/ui/ct-commit-list.html
|
| index 6ff19411001d97a75351606affa88d8304cde383..5ecc710bdcc1b658c152e01860f4607cacd9b27e 100644
|
| --- a/Tools/GardeningServer/ui/ct-commit-list.html
|
| +++ b/Tools/GardeningServer/ui/ct-commit-list.html
|
| @@ -6,48 +6,24 @@ found in the LICENSE file.
|
|
|
| <link rel="import" href="ct-commit.html">
|
|
|
| -<polymer-element name="ct-commit-list" attributes="first last commits" noscript>
|
| +<polymer-element name="ct-commit-list" attributes="commitList">
|
| <template>
|
| <style>
|
| :host {
|
| display: block;
|
| }
|
| </style>
|
| - <template repeat="{{ repository in commits.commits | _repositories }}">
|
| - <template repeat="{{ commit in repository | _commits }}">
|
| + <template repeat="{{ repository in commitList | _repositories }}">
|
| + <template repeat="{{ commit in repository.commits }}">
|
| <ct-commit data="{{ commit }}"></ct-commit>
|
| </template>
|
| </template>
|
| </template>
|
| <script>
|
| - Polymer({
|
| - commits: null,
|
| - first: null,
|
| - last: null,
|
| -
|
| - _repositories: function(commits) {
|
| - if (!commits)
|
| - return [];
|
| - return Object.keys(commits).sort();
|
| - },
|
| -
|
| - _commits: function(repository) {
|
| - var commits = [];
|
| - if (!this.first || !this.last)
|
| - return commits;
|
| -
|
| - var first = Number(this.first[repository]);
|
| - var last = Number(this.last[repository]);
|
| - if (first == last)
|
| - return commits;
|
| -
|
| - if (first > last) {
|
| - console.warn('Revision range is backwards, which is invalid:', first, last);
|
| - return commits;
|
| - }
|
| -
|
| - return this.commits.range(repository, first + 1, last);
|
| - },
|
| - });
|
| + Polymer({
|
| + _repositories: function() {
|
| + return this.commitList.repositories();
|
| + }
|
| + });
|
| </script>
|
| </polymer-element>
|
|
|