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

Side by Side Diff: appengine/swarming/elements/res/imp/common/common-behavior.html

Issue 2372323002: Add pageable data widget (Closed) Base URL: git@github.com:luci/luci-py@master
Patch Set: rebase Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 <!-- 1 <!--
2 Copyright 2016 The LUCI Authors. All rights reserved. 2 Copyright 2016 The LUCI Authors. All rights reserved.
3 Use of this source code is governed under the Apache License, Version 2.0 3 Use of this source code is governed under the Apache License, Version 2.0
4 that can be found in the LICENSE file. 4 that can be found in the LICENSE file.
5 5
6 It contains the definition of the following Behaviors: 6 It contains the definition of the following Behaviors:
7 7
8 SwarmingBehaviors.CommonBehavior 8 SwarmingBehaviors.CommonBehavior
9 9
10 To use it, include 10 To use it, include
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // now is used. 137 // now is used.
138 _timeDiffExact: function(first, second){ 138 _timeDiffExact: function(first, second){
139 if (!first) { 139 if (!first) {
140 return "eons"; 140 return "eons";
141 } 141 }
142 if (!second) { 142 if (!second) {
143 second = new Date(); 143 second = new Date();
144 } 144 }
145 return this._humanDuration((second.getTime() - first.getTime())/1000); 145 return this._humanDuration((second.getTime() - first.getTime())/1000);
146 }, 146 },
147
148 _truthy: function(a){
149 return !!a;
150 }
147 }; 151 };
148 })(); 152 })();
149 </script> 153 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698