mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 07:16:06 -06:00
added 403 error page
This commit is contained in:
parent
24db694df3
commit
8f163f457a
Binary file not shown.
|
After Width: | Height: | Size: 97 KiB |
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
'404_title' => 'Not Found',
|
'404_title' => 'Not Found',
|
||||||
|
'403_title' => 'Forbidden',
|
||||||
'404_message' => 'The page you were looking for was not found.',
|
'404_message' => 'The page you were looking for was not found.',
|
||||||
|
'403_message' => 'Access to this resources on the site is denied!',
|
||||||
'home_page' => 'Go to Home Page',
|
'home_page' => 'Go to Home Page',
|
||||||
];
|
];
|
||||||
@ -1 +1,22 @@
|
|||||||
403
|
{% extends "visiosoft.theme.base::layouts/error" %}
|
||||||
|
|
||||||
|
{% block styles %}
|
||||||
|
{{ asset_style('visiosoft.theme.base::css/error.css') }}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
<div class="container h-100 align-items-center d-flex">
|
||||||
|
<div class="col-12 bg-white shadow p-5 rounded text-center">
|
||||||
|
<img src="{{ img('visiosoft.theme.base::images/errors/403.png').url }}" class="w-100 error-image" alt="403">
|
||||||
|
|
||||||
|
<h3 class="h3 mb-3 font-weight-bold">{{ trans('visiosoft.theme.base::errors.403_title') }}</h3>
|
||||||
|
<h5 class="h5 mb-3 font-weight-bold color-error-message">{{ trans('visiosoft.theme.base::errors.403_message') }}</h5>
|
||||||
|
<div class="py-4">
|
||||||
|
<a class="error-btn-home rounded px-3 py-2" href="{{ url('/') }}"> {{ trans('visiosoft.theme.base::errors.home_page') }}</a>
|
||||||
|
</div>
|
||||||
|
{% if auth_check() %}
|
||||||
|
<a class="text-white bg-dark border rounded px-3 py-2" href="{{ url('/') }}">{{ trans('visiosoft.theme.base::field.logout.name') }}</a>
|
||||||
|
{% endif %}
|
||||||
|
<span class="small font-weight-bold mt-3 d-block text-muted">{{ setting_value('streams::domain', 'openclassify.com') }}</span>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
||||||
@ -128,6 +128,7 @@ class BaseThemeServiceProvider extends AddonServiceProvider
|
|||||||
*/
|
*/
|
||||||
protected $mobile = [
|
protected $mobile = [
|
||||||
'streams::errors/404' => 'visiosoft.theme.base::errors/404',
|
'streams::errors/404' => 'visiosoft.theme.base::errors/404',
|
||||||
|
'streams::errors/403' => 'visiosoft.theme.base::errors/403',
|
||||||
'anomaly.module.users::login' => 'visiosoft.theme.base::addons/anomaly/users-module/login',
|
'anomaly.module.users::login' => 'visiosoft.theme.base::addons/anomaly/users-module/login',
|
||||||
'anomaly.module.users::register' => 'visiosoft.theme.base::addons/anomaly/users-module/register',
|
'anomaly.module.users::register' => 'visiosoft.theme.base::addons/anomaly/users-module/register',
|
||||||
'anomaly.module.users::password/forgot' => 'visiosoft.theme.base::addons/anomaly/users-module/password/forgot',
|
'anomaly.module.users::password/forgot' => 'visiosoft.theme.base::addons/anomaly/users-module/password/forgot',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user