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

Unified Diff: Tools/GardeningServer/ui/ct-last-updated.html

Issue 728023004: Remove GardeningServer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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
Index: Tools/GardeningServer/ui/ct-last-updated.html
diff --git a/Tools/GardeningServer/ui/ct-last-updated.html b/Tools/GardeningServer/ui/ct-last-updated.html
deleted file mode 100644
index 1ab1396892a1c57610d1c360507a2d9b9658f041..0000000000000000000000000000000000000000
--- a/Tools/GardeningServer/ui/ct-last-updated.html
+++ /dev/null
@@ -1,50 +0,0 @@
-<!--
-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.
--->
-
-<polymer-element name="ct-last-updated" attributes="date">
- <template>
- <template if="{{ date }}">
- <style>
- .stale_5minutes {
- color: orange;
- }
- .stale_10minutes {
- color: red;
- }
- .stale_20minutes {
- background-color: red;
- color: black;
- }
- </style>
- <span class="{{ date | _style }}">Updated @ {{ date | _hours }}:{{ date | _minutes }}</div>
- </template>
- </template>
- <script>
- (function() {
- Polymer({
- date: null,
- _style: function(date) {
- var staleness = date.minutesAgo();
- if (staleness >= 20)
- return "stale_20minutes";
- if (staleness >= 10)
- return "stale_10minutes";
- if (staleness >= 5)
- return "stale_5minutes";
- return "";
- },
-
- _hours: function(date) {
- return date.getHours();
- },
- _minutes: function(date) {
- return date.getMinutes().toString().padLeft(2, '0');
- },
- });
- })();
-
- </script>
-</polymer-element>
« no previous file with comments | « Tools/GardeningServer/ui/ct-failure-stream.html ('k') | Tools/GardeningServer/ui/ct-master-failure-card.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698