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:
parent
338be594bd
commit
51b9f02da9
|
@ -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
|
||||
|
|
|
@ -7,6 +7,6 @@
|
|||
</div>
|
||||
|
||||
<div id="main">
|
||||
{{outlet flash}}
|
||||
{{render "flash"}}
|
||||
{{outlet main}}
|
||||
</div>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
</div>
|
||||
|
||||
<div id="main">
|
||||
{{outlet flash}}
|
||||
{{render "flash"}}
|
||||
{{outlet main}}
|
||||
</div>
|
||||
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
</div>
|
||||
|
||||
<div id="main">
|
||||
{{outlet flash}}
|
||||
{{render "flash"}}
|
||||
{{outlet main}}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user