Don't render "flash" as an outlet.

Just as with "top", we always render "flash" into flash outlet, so we
can render it straight away.
This commit is contained in:
Piotr Sarnacki 2014-05-23 16:42:05 +02:00
parent 338be594bd
commit 51b9f02da9
4 changed files with 3 additions and 5 deletions

View File

@ -279,7 +279,6 @@ Travis.IndexRoute = Travis.Route.extend
$('body').attr('id', 'home')
@render 'repos', outlet: 'left'
@render 'flash', outlet: 'flash'
setupController: (controller)->
@container.lookup('controller:repos').activate()
@ -314,7 +313,6 @@ Travis.ProfileRoute = Travis.Route.extend
$('body').attr('id', 'profile')
@render 'accounts', outlet: 'left'
@render 'flash', outlet: 'flash'
@_super.apply(this, arguments)
Travis.ProfileIndexRoute = Travis.Route.extend

View File

@ -7,6 +7,6 @@
</div>
<div id="main">
{{outlet flash}}
{{render "flash"}}
{{outlet main}}
</div>

View File

@ -7,7 +7,7 @@
</div>
<div id="main">
{{outlet flash}}
{{render "flash"}}
{{outlet main}}
</div>

View File

@ -3,6 +3,6 @@
</div>
<div id="main">
{{outlet flash}}
{{render "flash"}}
{{outlet main}}
</div>