5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-14 17:11:41 +00:00

ser más amables e informatives con los errores

This commit is contained in:
f 2020-08-29 21:21:41 -03:00
parent 460b2e6592
commit 416074ef6e
3 changed files with 36 additions and 79 deletions

View file

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<meta name="turbolinks-visit-control" content="reload">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sutty</title>
@ -9,26 +9,26 @@
<script defer type="text/javascript" src="/client_site_i18n.js"></script>
</head>
<body>
<div class='container-fluid'>
<div class='row'>
<main class="jumbotron">
<section id="castellano" lang="es">
<h1>404: Dirección web no encontrada</h1>
<main class="row no-gutters align-items-center justify-content-center vh-100">
<section class="col-10" lang="es">
<h1>404: Dirección web no encontrada</h1>
<p>Estás leyendo este mensaje porque la dirección web a la que quisiste acceder no existe :(</p>
<p>Estás leyendo este mensaje porque la dirección web a la que quisiste acceder no existe :(</p>
<p><a href="/">Volver al panel</a></p>
</section>
<p>¿Intentaste publicar los cambios?</p>
<section id="english" lang="en">
<h1>404: Address not found</h1>
<p><a href="/">Volver al panel</a></p>
</section>
<p>You're reading this message because the address you wanted doesn't exist :(</p>
<section class="col-10" lang="en">
<h1>404: Address not found</h1>
<p><a href="/">Go to panel</a></p>
</section>
</main>
</div>
</div>
<p>You're reading this message because the address you wanted to visit doesn't exist :(</p>
<p>Have you tried publishing changes on your site?</p>
<p><a href="/">Go back to panel</a></p>
</section>
</main>
</body>
</html>

View file

@ -1,81 +1,38 @@
<!DOCTYPE html>
<html>
<head>
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<meta name="turbolinks-visit-control" content="reload">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sutty</title>
<link rel="stylesheet" href="/bootstrap.min.css">
<script defer type="text/javascript" src="/client_site_i18n.js"></script>
</head>
<body class=''>
<div class='container-fluid'>
<div class='row'>
<main class='col'>
<section id="castellano" lang="es">
<h1>¡Hola!</h1>
<body>
<main class="row no-gutters align-items-center justify-content-center vh-100">
<section class="col-10" lang="es">
<h1>¡Hola! ¡No te preocupes!</h1>
<p>Estás viendo este mensaje porque hubo un error que Sutty el
programa no pudo continuar :(</p>
<p>Estás viendo este mensaje porque hubo un error, pero no hay problema, no se rompió nada.</p>
<p>Ya hemos recibido una notificación con los detalles.</p>
<p><strong>Ya hemos recibido una notificación con los detalles</strong> y estamos trabajando para resolverlo.</p>
<p>¿Podrías tomarte unos segundos para ayudarnos, explicando
lo mejor que puedas lo qué estabas haciendo cuando sucedió el
error? :)</p>
</section>
<p>Gracias por ayudarnos a encontrar errores :)</p>
<section id="english" lang="en">
<h1>Hi!</h1>
<p><a href="/">Volver al panel</a></p>
</section>
<p>You're seeing this page because there was an error from
which Sutty couldn't recover.</p>
<section class="col-10" lang="en">
<h1>Hi! Don't worry!</h1>
<p>We've received the details already.</p>
<p>You're seeing this page because there was an error but don't worry, nothing's been broken.</p>
<p>Could you take a few seconds to help us by explaining
what were you doing when the error happened? :)</p>
</section>
<p><strong>We've been notified of the details already</strong>, and we're working to fix it.</p>
<section id="form">
<img style="display: none" src="https://api.sutty.nl/v1/sites/sutty.nl..sutty.nl/contact/cookie.png">
<form accept-charset="UTF-8" method="post" action="https://api.sutty.nl/v1/sites/sutty.nl..sutty.nl/contact/contacto">
<input type="hidden" name="redirect" value="https://panel.sutty.nl/"/>
<p>Thanks for helping us in finding errors! :)</p>
<div class='form-group'>
<label for="contact">
<span lang="es">Dirección de correo</span>
<span lang="en">E-mail address</span>
</label>
<input class="form-control" type="email" name="contact" />
<small class='text-muted form-text'>
<span lang="es">Si querés que te contactemos :)</span>
<span lang="en">If you want us to contact you :)</span>
</small>
</div>
<div class='form-group'>
<label for="body">
<span lang="es">Por favor, describe lo que estabas haciendo cuando sucedió el error</span>
<span lang="en">Please, describe what you were doing when the error happened</span>
</label>
<textarea class="form-control ltr" required="required" name="body"></textarea>
<div class='invalid-feedback'>
<span lang="es">Este campo es obligatorio</span>
<span lang="en">This field is required</span>
</div>
</div>
<div class='form-group'>
<button type="submit" class="btn btn-success">
<span lang="es">Enviar</span>
<span lang="en">Send</span>
</button>
</div>
</form>
</section>
</main>
</div>
</div>
<p><a href="/">Go back to panel</a></p>
</section>
</main>
</body>
</html>

File diff suppressed because one or more lines are too long