Migrate templates to EJS
This commit is contained in:
parent
9b083ea0b7
commit
83792b80cd
14
src/views/upload_err.ejs
Normal file
14
src/views/upload_err.ejs
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<title>Error - <%= code %></title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Error <%= code %></h1>
|
||||||
|
<% if (code === 400) { %>
|
||||||
|
<p>You did not choose a file to upload</p>
|
||||||
|
<% } else if (code === 415) { %>
|
||||||
|
<p>You must only upload PDF files</p>
|
||||||
|
<% } %>
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -1,14 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<title>Error - {{ code }}</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>Error {{ code }}</h1>
|
|
||||||
{% if code == 400 %}
|
|
||||||
<p>You did not choose a file to upload</p>
|
|
||||||
{% elif code == 415 %}
|
|
||||||
<p>You must only upload PDF files</p>
|
|
||||||
{% endif %}
|
|
||||||
</body>
|
|
||||||
</html>
|
|
Loading…
Reference in New Issue
Block a user