| Index: appengine/swarming/ui/res/imp/common/task-behavior.html
|
| diff --git a/appengine/swarming/ui/res/imp/common/task-behavior.html b/appengine/swarming/ui/res/imp/common/task-behavior.html
|
| index 970a461695215332237d7baa6d65f53a2b5b62f4..8788e2b4e54452e119472b545322ff1bfade29cb 100644
|
| --- a/appengine/swarming/ui/res/imp/common/task-behavior.html
|
| +++ b/appengine/swarming/ui/res/imp/common/task-behavior.html
|
| @@ -75,7 +75,27 @@
|
| return "pending_task";
|
| }
|
| return "";
|
| - }
|
| + },
|
| +
|
| + state: function(result) {
|
| + if (!result) {
|
| + return "";
|
| + }
|
| + if (result.state === this.COMPLETED) {
|
| + if (result.failure) {
|
| + return this.COMPLETED_FAILURE;
|
| + }
|
| + if (result.try_number === "0") {
|
| + return this.COMPLETED_DEDUPED;
|
| + }
|
| + return this.COMPLETED_SUCCESS;
|
| + }
|
| + return result.state;
|
| + },
|
| +
|
| + _stateClass: function(result) {
|
| + return this.stateClass(this.state(result));
|
| + },
|
| };
|
| })();
|
| </script>
|
|
|