mirror of
https://github.com/PretendoNetwork/juxtaposition-ui.git
synced 2026-04-24 23:36:52 -05:00
chore: fix missing error page on 3DS
This commit is contained in:
parent
7500b53d80
commit
9a141562ce
27
src/webfiles/ctr/partials/ban_notification.ejs
Normal file
27
src/webfiles/ctr/partials/ban_notification.ejs
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<%if(user === undefined || user === null) {%>
|
||||
<body>
|
||||
<h1>You are not authorized to access this application</h1>
|
||||
<p>If you believe this is an issue, contact @JemTanuki on Discord</p>
|
||||
<p>Error: <%=error%></p>
|
||||
</body>
|
||||
<script>
|
||||
cave.error_callFreeErrorViewer(5980020, '<%=error%>\n\nIf you have any questions contact the developers in the Discord server.');
|
||||
cave.exitApp();
|
||||
</script>
|
||||
<%} else {%>
|
||||
<script>
|
||||
<% if(networkBan) {%>
|
||||
cave.error_callFreeErrorViewer(5980010, '<%=PNID%> has been banned from the network.\n\nReason: <%=user.ban_reason%>\n\nIf you have any questions contact the developers in the Discord server.');
|
||||
cave.closeApplication();
|
||||
<%} else if(user.account_status === 1) {%>
|
||||
cave.error_callFreeErrorViewer(5980009, '<%=PNID%> has been limited from posting until: \n\n<%= moment(user.ban_lift_date) %>.\n\nReason: <%=user.ban_reason%>\n\nIf you have any questions contact the developers in the Discord server.');
|
||||
location.href = '/communities';
|
||||
<%} else if(user.account_status === 2) {%>
|
||||
cave.error_callFreeErrorViewer(5980010, '<%=PNID%> has been banned until: \n\n<%= moment(user.ban_lift_date) %>.\n\nReason: <%=user.ban_reason%>\n\nIf you have any questions contact the developers in the Discord server.');
|
||||
cave.closeApplication();
|
||||
<%} else if(user.account_status === 3) {%>
|
||||
cave.error_callFreeErrorViewer(5980011, '<%=PNID%> has been banned forever.\n\nReason: <%=user.ban_reason%>\n\nIf you have any questions contact the developers in the Discord server.');
|
||||
cave.closeApplication();
|
||||
<%}%>
|
||||
</script>
|
||||
<%}%>
|
||||
Loading…
Reference in New Issue
Block a user