mirror of
https://github.com/exane/not-gwent-online
synced 2024-11-23 19:36:53 +00:00
rewrite app view
This commit is contained in:
parent
3bc8290ab8
commit
be39679690
@ -12,4 +12,4 @@
|
|||||||
|
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<component is="chat"></component>
|
<component is="chat"></component>
|
@ -14,11 +14,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<body class="{{ $section }}">
|
<body class="{{ $section }}">
|
||||||
|
|
||||||
@if(Auth::check() || Request::path() != '/')
|
<component is="{{ $section }}"></component>
|
||||||
<component is="inner"></component>
|
|
||||||
@else
|
|
||||||
<component is="landing"></component>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
||||||
<script src="{{ url('assets/js/bundle.js') }}"></script>
|
<script src="{{ url('assets/js/bundle.js') }}"></script>
|
||||||
|
@ -6,6 +6,10 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
get('/', function() {
|
get('/', function() {
|
||||||
|
if(Auth::check()) {
|
||||||
|
return redirect('/lobby');
|
||||||
|
}
|
||||||
|
|
||||||
return view('app')
|
return view('app')
|
||||||
->withSection('landing');
|
->withSection('landing');
|
||||||
});
|
});
|
Loading…
Reference in New Issue
Block a user