Index: Tools/GardeningServer/model/ct-commit-list.html |
diff --git a/Tools/GardeningServer/model/ct-commit-list.html b/Tools/GardeningServer/model/ct-commit-list.html |
index f4395bbd86b86fe5ecd4d83a3dd708ef92f8f563..dc34dcdb589f2cdc6ac1faef182f1ece8e37ec31 100644 |
--- a/Tools/GardeningServer/model/ct-commit-list.html |
+++ b/Tools/GardeningServer/model/ct-commit-list.html |
@@ -5,6 +5,7 @@ found in the LICENSE file. |
--> |
<link rel="import" href="ct-commit-log.html"> |
+<link rel="import" href="ct-repository-commit-list.html"> |
<script> |
function CTCommitList(commitLog, revisions) { |
@@ -27,12 +28,7 @@ CTCommitList.prototype.update = function(commitLog) { |
if (!commits.length) |
continue; |
- this.repositories.push({ |
- name: repository, |
- range: this._displayRange(commits, repository), |
- commits: commits, |
- expanded: false |
- }); |
+ this.repositories.push(new CTRepositoryCommitList(repository, commits)); |
} |
}; |
@@ -52,8 +48,4 @@ CTCommitList.prototype._initRevisions = function(repoRevisions) { |
}.bind(this)); |
}; |
-CTCommitList.prototype._displayRange = function(commits) { |
- return commits.first().revision + " : " + commits.last().revision; |
-}; |
- |
</script> |