Index: Tools/GardeningServer/model/ct-repository-commit-list.html |
diff --git a/Tools/GardeningServer/model/ct-repository-commit-list.html b/Tools/GardeningServer/model/ct-repository-commit-list.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..dacf0c8573d0079b8d4a733a50abbdadd2fec132 |
--- /dev/null |
+++ b/Tools/GardeningServer/model/ct-repository-commit-list.html |
@@ -0,0 +1,22 @@ |
+<!-- |
+Copyright 2014 The Chromium Authors. All rights reserved. |
+Use of this source code is governed by a BSD-style license that can be |
+found in the LICENSE file. |
+--> |
+ |
+<script> |
+function CTRepositoryCommitList(repository, commits) { |
+ this.name = repository; |
+ this.key = repository; |
+ this.range = this._displayRange(commits); |
+ this.commits = commits; |
+ this.expanded = false; |
+} |
+ |
+CTRepositoryCommitList.prototype._displayRange = function(commits) { |
+ return commits.first().revision + " : " + commits.last().revision; |
+}; |
+ |
+CTRepositoryCommitList.transientProperties = ['expanded']; |
+ |
+</script> |