Showing vote thanks page, restricting vote names to pre specified ones

This commit is contained in:
MrFry 2020-04-20 14:51:49 +02:00
parent d55115f353
commit bd8e46f6c7
2 changed files with 53 additions and 4 deletions

31
modules/api/views/votethank.ejs Executable file
View file

@ -0,0 +1,31 @@
<html>
<body bgcolor="#212127">
<head>
<title>Shit uploader</title>
<meta charset="UTF-8">
<style>
.main {
font-size: 28px;
color: #ffffff;
text-align: center;
}
</style>
</head>
<div class='main'>
<%
if (result == 'success') {
%> ty a szavazásért c: <%
} else if (result == 'no such pool') {
%> Ilyen nevű szavazás nincs :c <%
} else if (result == 'already voted') {
%> Már szavaztál, de azért ty c: <%
} else if (result == 'error') {
%> Helytelen url paraméterek :c <%
} else {
%> bit of a fuckup here <%
}
%>
ty c:
</div>
</body>
</html>