From b6a3524e9b86722a5c697c33934714c1248889d0 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sun, 15 Feb 2015 21:39:01 -0800 Subject: [PATCH] Add a relative time component to frontend --- .../polymer/components/recent-states.html | 5 ++- .../components/relative-ha-datetime.html | 41 +++++++++++++++++++ .../polymer/components/state-info.html | 5 ++- .../polymer/home-assistant-api.html | 12 ++---- .../polymer/more-infos/more-info-sun.html | 6 ++- .../polymer/resources/moment-js.html | 5 +++ 6 files changed, 60 insertions(+), 14 deletions(-) create mode 100644 homeassistant/components/frontend/www_static/polymer/components/relative-ha-datetime.html create mode 100644 homeassistant/components/frontend/www_static/polymer/resources/moment-js.html diff --git a/homeassistant/components/frontend/www_static/polymer/components/recent-states.html b/homeassistant/components/frontend/www_static/polymer/components/recent-states.html index 5f8463c74bb..408c0448836 100644 --- a/homeassistant/components/frontend/www_static/polymer/components/recent-states.html +++ b/homeassistant/components/frontend/www_static/polymer/components/recent-states.html @@ -1,6 +1,8 @@ + + diff --git a/homeassistant/components/frontend/www_static/polymer/components/relative-ha-datetime.html b/homeassistant/components/frontend/www_static/polymer/components/relative-ha-datetime.html new file mode 100644 index 00000000000..68f75eb90ee --- /dev/null +++ b/homeassistant/components/frontend/www_static/polymer/components/relative-ha-datetime.html @@ -0,0 +1,41 @@ + + + + + + + + diff --git a/homeassistant/components/frontend/www_static/polymer/components/state-info.html b/homeassistant/components/frontend/www_static/polymer/components/state-info.html index ddd696fd235..05c9ff643bf 100755 --- a/homeassistant/components/frontend/www_static/polymer/components/state-info.html +++ b/homeassistant/components/frontend/www_static/polymer/components/state-info.html @@ -3,6 +3,7 @@ +