diff --git a/app/initializers/services.coffee b/app/initializers/services.coffee index 308853a0..4da8e040 100644 --- a/app/initializers/services.coffee +++ b/app/initializers/services.coffee @@ -5,10 +5,12 @@ initialize = (container, application) -> application.slider = new Slider(application.storage) - application.tailing = new Tailing($(window), '#tail', '#log') application.toTop = new ToTop($(window), '.to-top', '#log-container') + application.register 'slider:main', application.slider, { instantiate: false } + application.inject('view', 'slider', 'slider:main') + Initializer = name: 'services' initialize: initialize diff --git a/app/templates/events/list.hbs b/app/templates/events/list.hbs index 9e13db94..eaf24b0a 100644 --- a/app/templates/events/list.hbs +++ b/app/templates/events/list.hbs @@ -11,7 +11,7 @@ {{#each event in view.events}} - {{#view Travis.EventsItemView contextBinding="event"}} + {{#view "events-item" contextBinding="event"}} {{format-time createdAt}} diff --git a/app/templates/layouts/flash.hbs b/app/templates/layouts/flash.hbs index 193d0d8c..635ad6a1 100644 --- a/app/templates/layouts/flash.hbs +++ b/app/templates/layouts/flash.hbs @@ -1,5 +1,5 @@ {{#each flash in controller}} - {{#view Travis.FlashItemView flashBinding="flash"}} + {{#view "flash-item" flashBinding="flash"}}

{{{flash.message}}}

{{/view}} diff --git a/app/templates/layouts/profile.hbs b/app/templates/layouts/profile.hbs index 736b3899..01331545 100644 --- a/app/templates/layouts/profile.hbs +++ b/app/templates/layouts/profile.hbs @@ -12,7 +12,7 @@