1
0
mirror of https://github.com/exane/not-gwent-online synced 2024-10-31 10:36:53 +00:00

rewrite app view

This commit is contained in:
devfake 2015-06-22 12:16:40 +02:00
parent 3bc8290ab8
commit be39679690
4 changed files with 13 additions and 13 deletions

View File

@ -12,4 +12,4 @@
</main>
<component is="chat"></component>
<component is="chat"></component>

View File

@ -14,11 +14,7 @@
</head>
<body class="{{ $section }}">
@if(Auth::check() || Request::path() != '/')
<component is="inner"></component>
@else
<component is="landing"></component>
@endif
<component is="{{ $section }}"></component>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="{{ url('assets/js/bundle.js') }}"></script>

View File

@ -6,6 +6,10 @@
});
get('/', function() {
if(Auth::check()) {
return redirect('/lobby');
}
return view('app')
->withSection('landing');
});