| 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>
|
|
|