chore: generic customized error page
This commit is contained in:
parent
5d23b37f59
commit
5b98fd7c6d
5 changed files with 98 additions and 0 deletions
19
app/views/errors/show.en.html.haml
Normal file
19
app/views/errors/show.en.html.haml
Normal file
|
@ -0,0 +1,19 @@
|
|||
%main#content{ role: "main" }
|
||||
.fr-container
|
||||
.fr-my-7w.fr-mt-md-12w.fr-mb-md-10w.fr-grid-row.fr-grid-row--gutters.fr-grid-row--middle.fr-grid-row--center
|
||||
.fr-py-0.fr-col-12.fr-col-md-6
|
||||
%h1= @error_name
|
||||
%p.fr-text--sm.fr-mb-3w Error #{@status}
|
||||
%p.fr-text--lead.fr-mb-3w An error prevents this page from loading.
|
||||
|
||||
- if @error_name.present? # valid error code
|
||||
%p.fr-text--sm.fr-mb-5w
|
||||
= link_to("What does that mean?", "https://developer.mozilla.org/en/docs/Web/HTTP/Status/#{@status}", **external_link_attributes)
|
||||
|
||||
%ul.fr-btns-group.fr-btns-group--inline-md
|
||||
%li
|
||||
= link_to("Homepage", root_path, class: "fr-btn")
|
||||
%li
|
||||
= link_to("Contact us", contact_path, class: "fr-btn fr-btn--secondary")
|
||||
|
||||
= render partial: "artwork"
|
Loading…
Add table
Add a link
Reference in a new issue