Conflicts:
	skolehjem/resources/views/app/news/index.blade.php
This commit is contained in:
frederikpyt 2020-08-31 14:44:15 +02:00
commit 101be37dfe
2 changed files with 2 additions and 3 deletions

View File

@ -31,12 +31,12 @@ class RootController extends Controller
if(Response::detect("root.index")->name() == "admin.root.index")
return view("admin.root.index");
else {
$news = News::query()->orderBy('id', 'desc')->get();
$news = News::query()->join('news_types', 'news_types.id', '=', 'news.type_id')->orderBy('id', 'desc')->get();
return view("app.root.index", ["news" => $news]);
}
}
else {
$news = News::query()->orderBy('id', 'desc')->get();
$news = News::query()->join('news_types', 'news_types.id', '=', 'news.type_id')->orderBy('id', 'desc')->get();
return Response::detect('root.index', ["news" => $news]);
}

View File

@ -9,7 +9,6 @@
margin-top: .5rem;
margin-bottom: 7px;
width: auto;
heigt: auto;
@if(request()->cookie("mode") == "dark")
background-color: rgba(0,0,0, 0.3);
@else