-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handles 404 with a custom page using the app template
To have a nicer response to visitors of 404s, versus the static one, so user can still use the nav/search and continue to other pages on the site.
- Loading branch information
1 parent
934c742
commit c9a6611
Showing
5 changed files
with
39 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.jumbotron.text-center | ||
= title "Page Not Found - 404 error", class: "text-danger" | ||
|
||
%br | ||
|
||
%p Sorry, the page you were looking for could not be found. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.jumbotron.text-center | ||
= title "Lab Not Found - 404 error", class: "text-danger" | ||
|
||
%br | ||
|
||
%p Unable to find any Lab matching the URL provided. Try searching or browse through the list of labs. | ||
|
||
%br | ||
|
||
= link_to t("views.header.labs"), labs_path, class: "btn btn-primary btn-lg" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters