travis-web/assets/scripts/app/templates/layouts/flash.hbs
Piotr Sarnacki 66be22af68 Fix actions on views
Almost all actions on views were not properly handled, because they were still
methods directly on a view object rather than in `actions` property. This commit
fixes it.
2014-12-29 18:17:55 +01:00

7 lines
194 B
Handlebars

{{#each flash in controller}}
{{#view Travis.FlashItemView flashBinding="flash"}}
<p>{{{flash.message}}}</p>
<a class="close" {{action "close" target=view}}></a>
{{/view}}
{{/each}}