From c76502a7074abba4c35d7769c0c89b5408951a5d Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Sun, 16 Oct 2016 15:49:29 +0200 Subject: [PATCH] Add template for 404 --- web/templates/error/404.html.eex | 4 ++++ web/views/error_view.ex | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 web/templates/error/404.html.eex diff --git a/web/templates/error/404.html.eex b/web/templates/error/404.html.eex new file mode 100644 index 0000000..74ce7c9 --- /dev/null +++ b/web/templates/error/404.html.eex @@ -0,0 +1,4 @@ +
+

404

+

not found

+
diff --git a/web/views/error_view.ex b/web/views/error_view.ex index 0c7de09..050ea0e 100644 --- a/web/views/error_view.ex +++ b/web/views/error_view.ex @@ -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