diff --git a/app/components/repos-empty.coffee b/app/components/repos-empty.coffee new file mode 100644 index 00000000..345de82e --- /dev/null +++ b/app/components/repos-empty.coffee @@ -0,0 +1,5 @@ +`import Ember from 'ember'` + +ReposEmptyComponent = Ember.Component.extend() + +`export default ReposEmptyComponent` diff --git a/app/templates/pro/repos/show/empty.hbs b/app/templates/components/repos-empty.hbs similarity index 100% rename from app/templates/pro/repos/show/empty.hbs rename to app/templates/components/repos-empty.hbs diff --git a/app/templates/repo.hbs b/app/templates/repo.hbs index d9571f95..6aacd734 100644 --- a/app/templates/repo.hbs +++ b/app/templates/repo.hbs @@ -1,7 +1,7 @@
{{#if view.isEmpty}} - {{view 'repos-empty'}} + {{repos-empty}} {{else}} {{#if repo.isLoaded}} diff --git a/app/views/repo.coffee b/app/views/repo.coffee index d6035868..edb5b72a 100644 --- a/app/views/repo.coffee +++ b/app/views/repo.coffee @@ -32,12 +32,4 @@ View = BasicView.extend Polling, view.appendTo($('body')) return false - ReposEmptyView: BasicView.extend - template: (-> - if config.pro - 'pro/repos/show/empty' - else - '' - ).property() - `export default View`