From b735f0815393c81aa90ff8842750e003556ac43f Mon Sep 17 00:00:00 2001 From: Lisa Passing Date: Mon, 20 Apr 2015 13:16:48 +0200 Subject: [PATCH] make sync-button on ownerpage and extension of the base sync button --- app/components/ownerpage-sync-button.coffee | 6 ++++++ .../components/ownerpage-sync-button.hbs | 15 +++++++++++++++ app/templates/ownerpage.hbs | 8 +------- 3 files changed, 22 insertions(+), 7 deletions(-) create mode 100644 app/components/ownerpage-sync-button.coffee create mode 100644 app/templates/components/ownerpage-sync-button.hbs diff --git a/app/components/ownerpage-sync-button.coffee b/app/components/ownerpage-sync-button.coffee new file mode 100644 index 00000000..bfe0bd2d --- /dev/null +++ b/app/components/ownerpage-sync-button.coffee @@ -0,0 +1,6 @@ +`import Ember from 'ember'` +`import SyncButton from 'travis/components/sync-button'` + +Component = SyncButton.extend() + +`export default Component` diff --git a/app/templates/components/ownerpage-sync-button.hbs b/app/templates/components/ownerpage-sync-button.hbs new file mode 100644 index 00000000..a1be7504 --- /dev/null +++ b/app/templates/components/ownerpage-sync-button.hbs @@ -0,0 +1,15 @@ +
+ {{#if user.isSyncing }} +

+ +

+ {{else}} +

+ +

+

last synced {{format-time user.syncedAt}}

+ {{/if}} +
diff --git a/app/templates/ownerpage.hbs b/app/templates/ownerpage.hbs index bd8e3ad6..2a04c360 100644 --- a/app/templates/ownerpage.hbs +++ b/app/templates/ownerpage.hbs @@ -9,13 +9,7 @@

Travis CI GmbH

travis-pro

-
-

- -

-

last synced {{format-time user.syncedAt}}

-
+ {{ownerpage-sync-button}}