Add template for 404
This commit is contained in:
parent
e37a9f3702
commit
c76502a707
4
web/templates/error/404.html.eex
Normal file
4
web/templates/error/404.html.eex
Normal file
@ -0,0 +1,4 @@
|
||||
<div class="container">
|
||||
<h1>404</h1>
|
||||
<p>not found</p>
|
||||
</div>
|
@ -1,10 +1,6 @@
|
||||
defmodule Asciinema.ErrorView do
|
||||
use Asciinema.Web, :view
|
||||
|
||||
def render("404.html", _assigns) do
|
||||
"Page not found"
|
||||
end
|
||||
|
||||
def render("500.html", _assigns) do
|
||||
"Internal server error"
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user