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

View file

@ -1,81 +1,38 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <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="turbolinks-visit-control" content="reload">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sutty</title> <title>Sutty</title>
<link rel="stylesheet" href="/bootstrap.min.css"> <link rel="stylesheet" href="/bootstrap.min.css">
<script defer type="text/javascript" src="/client_site_i18n.js"></script> <script defer type="text/javascript" src="/client_site_i18n.js"></script>
</head> </head>
<body class=''> <body>
<div class='container-fluid'> <main class="row no-gutters align-items-center justify-content-center vh-100">
<div class='row'> <section class="col-10" lang="es">
<main class='col'> <h1>¡Hola! ¡No te preocupes!</h1>
<section id="castellano" lang="es">
<h1>¡Hola!</h1>
<p>Estás viendo este mensaje porque hubo un error que Sutty el <p>Estás viendo este mensaje porque hubo un error, pero no hay problema, no se rompió nada.</p>
programa no pudo continuar :(</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 <p>Gracias por ayudarnos a encontrar errores :)</p>
lo mejor que puedas lo qué estabas haciendo cuando sucedió el
error? :)</p>
</section>
<section id="english" lang="en"> <p><a href="/">Volver al panel</a></p>
<h1>Hi!</h1> </section>
<p>You're seeing this page because there was an error from <section class="col-10" lang="en">
which Sutty couldn't recover.</p> <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 <p><strong>We've been notified of the details already</strong>, and we're working to fix it.</p>
what were you doing when the error happened? :)</p>
</section>
<section id="form"> <p>Thanks for helping us in finding errors! :)</p>
<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/"/>
<div class='form-group'> <p><a href="/">Go back to panel</a></p>
<label for="contact"> </section>
<span lang="es">Dirección de correo</span> </main>
<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>
</body> </body>
</html> </html>

File diff suppressed because one or more lines are too long