1
0
mirror of https://github.com/tabler/tabler.git synced 2026-08-02 08:25:32 +04:00

error pages

This commit is contained in:
codecalm
2019-12-15 17:17:21 +01:00
parent fd0c468289
commit 81eb1abd8e
13 changed files with 361 additions and 646 deletions
+6
View File
@@ -0,0 +1,6 @@
---
title: Page 400
layout: error
error: 400
done: true
---
+6
View File
@@ -0,0 +1,6 @@
---
title: Page 401
layout: error
error: 401
done: true
---
+6
View File
@@ -0,0 +1,6 @@
---
title: Page 403
layout: error
error: 403
done: true
---
+6
View File
@@ -0,0 +1,6 @@
---
title: Page 500
layout: error
error: 500
done: true
---
+6
View File
@@ -0,0 +1,6 @@
---
title: Page 503
layout: error
error: 503
done: true
---
+22 -7
View File
@@ -1,8 +1,23 @@
400: We are sorry but your request contains bad syntax and cannot be fulfilled
401: We are sorry but you are not authorized to access this page
403: We are sorry but you do not have permission to access this page
404: We are sorry but the page you are looking for was not found
500: We are sorry but our server encountered an internal error
503: We are sorry but our service is currently not available
maintenance: Sorry, were down for maintenance.
400:
title: 400
description: We are sorry but your request contains bad syntax and cannot be fulfilled
401:
title: 401
description: We are sorry but you are not authorized to access this page
403:
title: 403
description: We are sorry but you do not have permission to access this page
404:
title: 404
description: We are sorry but the page you are looking for was not found
500:
title: 500
description: We are sorry but our server encountered an internal error
503:
title: 503
description: We are sorry but our service is currently not available
maintenance:
illustration: undraw_bug_fixing_oc7a.svg
header: Temporarily down for maintenance
description: Sorry for the inconvenience but were performing some maintenance at the moment. Well be back online shortly!
+2 -1
View File
@@ -17,6 +17,7 @@
</p>
<div class="empty-action">
{% assign button-text = include.button-text | default: "Search again" %}
{% include_cached ui/button.html text=button-text color="primary" icon=include.button-icon %}
{% assign button-icon = include.button-icon | default: "search" %}
{% include_cached ui/button.html text=button-text color="primary" icon=button-icon %}
</div>
</div>
+5 -2
View File
@@ -3,5 +3,8 @@ layout: base
body-class: border-top-2 border-primary
---
{% assign error = site.data.errors[page.error] %}
{% include ui/empty.html icon="settings" icon-text=page.error title="Oops&hellip; You just found an error page" subtitle=error %}
<div class="d-flex align-items-center justify-content-center min-vh-100">
{% assign error = site.data.errors[page.error] %}
{% assign header = error.header | default: 'Oops&hellip; You just found an error page' %}
{% include ui/empty.html icon="settings" illustration=error.illustration icon-text=error.title title=header subtitle=error.description button-icon="arrow-left" button-text="Take me home" %}
</div>