1
0
mirror of https://github.com/flarum/core.git synced 2025-08-06 00:17:31 +02:00

Add a "return home" link to 404 errors

This commit is contained in:
Toby Zerner
2017-11-29 13:23:25 +10:30
parent ca1f2d8a80
commit 21c9eae502
4 changed files with 18 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
@extends('flarum.forum::layouts.basic')
@section('content')
<p>
{{ $translator->trans('core.views.error.404_message') }}
</p>
<p>
<a href="{{ $app->url() }}">
{{ $translator->trans('core.views.error.404_return_link', ['{forum}' => $settings->get('forum_title')]) }}
</a>
</p>
@endsection

View File

@@ -34,6 +34,7 @@
cursor: pointer;
color: {{ $primaryColor }};
text-decoration: none;
font-weight: bold;
}
a:hover {
text-decoration: underline;