From fe1737eebdbf5ade6a8e4838f6557b77ed44f469 Mon Sep 17 00:00:00 2001 From: Philippe MARTIN Date: Wed, 29 May 2019 17:02:35 +0200 Subject: [PATCH] Show tooltip timestamp on time hover across pages (#3767) * Show tooltip timestamp on time hover across pages * Style on date with tooltip * fix newline * fix gts * Allow [disable]=false on kd-date * fix format --- .../chrome/notifications/template.html | 3 +- .../common/components/condition/template.html | 12 ++--- .../common/components/creator/template.html | 11 +++-- .../common/components/date/component.ts | 49 +++++++++++++++++++ .../common/components/date/style.scss | 17 +++++++ .../common/components/date/template.html | 24 +++++++++ src/app/frontend/common/components/module.ts | 3 ++ .../components/objectmeta/template.html | 12 +++-- .../common/components/quotas/template.html | 6 +-- .../resourcelist/clusterrole/template.html | 3 +- .../resourcelist/configmap/template.html | 3 +- .../resourcelist/cronjob/template.html | 9 ++-- .../resourcelist/daemonset/template.html | 5 +- .../resourcelist/deployment/template.html | 5 +- .../resourcelist/ingress/template.html | 3 +- .../components/resourcelist/job/template.html | 5 +- .../resourcelist/namespace/template.html | 3 +- .../resourcelist/node/template.html | 5 +- .../persistentvolume/template.html | 3 +- .../persistentvolumeclaim/template.html | 3 +- .../components/resourcelist/pod/template.html | 3 +- .../resourcelist/replicaset/template.html | 5 +- .../replicationcontroller/template.html | 5 +- .../resourcelist/secret/template.html | 3 +- .../resourcelist/service/template.html | 3 +- .../resourcelist/statefulset/template.html | 5 +- .../resourcelist/storageclass/template.html | 3 +- src/app/frontend/logs/template.html | 4 +- .../workloads/deployment/detail/template.html | 11 +++-- 29 files changed, 184 insertions(+), 42 deletions(-) create mode 100644 src/app/frontend/common/components/date/component.ts create mode 100644 src/app/frontend/common/components/date/style.scss create mode 100644 src/app/frontend/common/components/date/template.html diff --git a/src/app/frontend/chrome/notifications/template.html b/src/app/frontend/chrome/notifications/template.html index e0d2b17552fc..a99491f5566c 100644 --- a/src/app/frontend/chrome/notifications/template.html +++ b/src/app/frontend/chrome/notifications/template.html @@ -42,7 +42,8 @@ {{notification.message}} - {{notification.timestamp | kdRelativeTime}} ago + ago