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

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

Issue 466783002: Hide last updated data until date is populated. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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
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
index e2e832bd9ac494f9d80713f80b37ea2ed72125fa..a13e649099f8a9f9cd6b33361343334001b758a5 100644
--- a/Tools/GardeningServer/ui/ct-last-updated.html
+++ b/Tools/GardeningServer/ui/ct-last-updated.html
@@ -6,12 +6,22 @@ found in the LICENSE file.
<polymer-element name="ct-last-updated" attributes="date">
<template>
- Updated {{ date | _deltaMinutes }} min ago @ {{ date | _hours }}:{{ date | _minutes }}
+ <style>
+ .hidden {
+ opacity: 0;
+ }
+ </style>
+ <span class="{{ { hidden: !visible } | tokenList }}">Updated {{ date | _deltaMinutes }} min ago @ {{ date | _hours }}:{{ date | _minutes }}</span>
ojan 2014/08/12 17:39:05 I think your <template if> problem is likely that
teravest 2014/08/12 19:31:41 I've changed this to use an inner template tag as
</template>
<script>
(function() {
Polymer({
date: new Date(0),
+ visible: false,
+
+ dateChanged: function() {
+ this.visible = true;
+ },
_deltaMinutes: function(date) {
return date.minutesAgo();

Powered by Google App Engine
This is Rietveld 408576698