Chromium Code Reviews| Index: Tools/GardeningServer/ui/ct-failure-card.html |
| diff --git a/Tools/GardeningServer/ui/ct-failure-card.html b/Tools/GardeningServer/ui/ct-failure-card.html |
| index d726018188eef68216ce1a5dc4d2ee7d87938c78..1396a585ebff94857d1f087ad51b4ca5d1349ac1 100644 |
| --- a/Tools/GardeningServer/ui/ct-failure-card.html |
| +++ b/Tools/GardeningServer/ui/ct-failure-card.html |
| @@ -6,6 +6,7 @@ found in the LICENSE file. |
| <link rel="import" href="../model/ct-builder-list.html"> |
| <link rel="import" href="ct-bot-failure-card.html"> |
| +<link rel="import" href="ct-builder-failure-card.html"> |
| <link rel="import" href="ct-trooper-card.html"> |
| <link rel="import" href="../bower_components/paper-dialog/paper-dialog.html"> |
| <link rel="import" href="../bower_components/paper-dialog/paper-dialog-transition.html"> |
| @@ -67,10 +68,13 @@ found in the LICENSE file. |
| </style> |
| <div id="container"> |
| <div class="card {{ { snoozed: group.isSnoozed } | tokenList }}"> |
| - <template if="{{ group.data.type == 'sheriff' }}"> |
| + <template if="{{ group.data.category == 'sheriff' }}"> |
|
ojan
2014/09/10 00:40:03
Please add FIXME to do the refactoring to move the
|
| <ct-bot-failure-card class='card' group="{{ group.data }}" builderList="{{ _builderList }}"></ct-bot-failure-card> |
| </template> |
| - <template if="{{ group.data.type != 'sheriff' }}"> |
| + <template if="{{ group.data.category == 'builder' }}"> |
| + <ct-builder-failure-card class='card' group="{{ group.data }}" builderList="{{ _builderList }}"></ct-builder-failure-card> |
| + </template> |
| + <template if="{{ group.data.category == 'trooper' }}"> |
| <ct-trooper-card class='card' group="{{ group.data }}"></ct-trooper-card> |
| </template> |
| </div> |
| @@ -109,6 +113,7 @@ found in the LICENSE file. |
| group: '_updateCommitList', |
| commitLog: '_updateCommitList', |
| 'group.data.failures': '_updateBuilderList', |
| + 'group.data.failure': '_updateBuilderList', |
| }, |
| examine: function() { |
| @@ -131,6 +136,8 @@ found in the LICENSE file. |
| _updateBuilderList: function() { |
| if (this.group.data.type == 'sheriff') |
| this._builderList = new CTBuilderList(this.group.data.failures); |
| + else if (this.group.data.type == 'builder') |
| + this._builderList = new CTBuilderList(this.group.data.failure); |
| }, |
| linkBug: function() { |