Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Unified Diff: appengine/swarming/elements/res/imp/taskpage/task-page-data.html

Issue 2337363004: Add task-page (Closed) Base URL: git@github.com:luci/luci-py@task-data
Patch Set: Alignment take 2 Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/swarming/elements/res/imp/taskpage/task-page.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/swarming/elements/res/imp/taskpage/task-page-data.html
diff --git a/appengine/swarming/elements/res/imp/taskpage/task-page-data.html b/appengine/swarming/elements/res/imp/taskpage/task-page-data.html
index a24da8f4dbfc587cf8865276df39c279f75fa76b..e4bb534e0b465de633bc3f58322a313efd071ddb 100644
--- a/appengine/swarming/elements/res/imp/taskpage/task-page-data.html
+++ b/appengine/swarming/elements/res/imp/taskpage/task-page-data.html
@@ -38,6 +38,7 @@
<link rel="import" href="/res/imp/common/common-behavior.html">
+<link rel="import" href="/res/imp/common/task-behavior.html">
<dom-module id="task-page-data">
<script>
@@ -55,6 +56,7 @@
behaviors: [
SwarmingBehaviors.CommonBehavior,
+ SwarmingBehaviors.TaskBehavior,
],
properties: {
@@ -181,7 +183,7 @@
}
});
// Running tasks have no duration set, so we can figure it out.
- if (!result.duration && result.state === "RUNNING" && result.started_ts){
+ if (!result.duration && result.state === this.RUNNING && result.started_ts){
result.duration = (now - result.started_ts) / 1000;
}
// Make the duration human readable
« no previous file with comments | « appengine/swarming/elements/res/imp/taskpage/task-page.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698