mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
Merge pull request #910 from openclassify/vedat
completed 404 error page
This commit is contained in:
commit
81d318d5d8
20
addons/default/visiosoft/base-theme/resources/css/error.css
Normal file
20
addons/default/visiosoft/base-theme/resources/css/error.css
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
body {
|
||||||
|
height: 100vh;
|
||||||
|
background: rgb(255, 255, 255);
|
||||||
|
background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(246, 246, 246, 1) 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-error-message {
|
||||||
|
color: #555555;
|
||||||
|
}
|
||||||
|
|
||||||
|
.error-image {
|
||||||
|
max-width: 400px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.error-btn-home {
|
||||||
|
color: #212529 !important;
|
||||||
|
font-weight: bold;
|
||||||
|
border: 2px solid #555555 !important;
|
||||||
|
text-decoration: none !important;
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 97 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
@ -0,0 +1,9 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
return [
|
||||||
|
'404_title' => 'Not Found',
|
||||||
|
'403_title' => 'Forbidden',
|
||||||
|
'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',
|
||||||
|
];
|
||||||
@ -0,0 +1,22 @@
|
|||||||
|
{% 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 %}
|
||||||
@ -0,0 +1,22 @@
|
|||||||
|
{% 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/404.png').url }}" class="w-100 error-image" alt="404">
|
||||||
|
|
||||||
|
<h3 class="h3 mb-3 font-weight-bold">{{ trans('visiosoft.theme.base::errors.404_title') }}</h3>
|
||||||
|
<h5 class="h5 mb-3 font-weight-bold color-error-message">{{ trans('visiosoft.theme.base::errors.404_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 %}
|
||||||
@ -0,0 +1,23 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
<!--[if lt IE 7]>
|
||||||
|
<html class="nojs ms lt_ie7" lang="{{ config('app.locale') }}"><![endif]-->
|
||||||
|
<!--[if IE 7]>
|
||||||
|
<html class="nojs ms ie7" lang="{{ config('app.locale') }}"><![endif]-->
|
||||||
|
<!--[if IE 8]>
|
||||||
|
<html class="nojs ms ie8" lang="{{ config('app.locale') }}"><![endif]-->
|
||||||
|
<!--[if gt IE 8]>
|
||||||
|
<html class="nojs ms" lang="{{ config('app.locale') }}"><![endif]-->
|
||||||
|
|
||||||
|
<html lang="{{ config('app.locale') }}">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
{% include "visiosoft.theme.base::partials/metadata" %}
|
||||||
|
{% block styles %}{% endblock %}
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
{% block content %}{% endblock %}
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
@ -127,8 +127,8 @@ class BaseThemeServiceProvider extends AddonServiceProvider
|
|||||||
* @type array|null
|
* @type array|null
|
||||||
*/
|
*/
|
||||||
protected $mobile = [
|
protected $mobile = [
|
||||||
//'streams::errors/404' => 'module::mobile/errors/404',
|
'streams::errors/404' => 'visiosoft.theme.base::errors/404',
|
||||||
//'streams::errors/500' => 'module::mobile/errors/500',
|
'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