aboutsummaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorjpl2016-07-29 11:24:40 +0200
committerjpl2016-07-29 11:24:40 +0200
commit7e9351446cb8b1a98c67bdf7d0ee78d99e1f504d (patch)
treec0ec78948c1f60c5a00177d7fe9f5d5b68905024 /app/views
parent958b0c7c44db15b7836714caf841588783f9e0d2 (diff)
downloadchouette-core-7e9351446cb8b1a98c67bdf7d0ee78d99e1f504d.tar.bz2
Refs #1295: convert erb to slim (errors)
Diffstat (limited to 'app/views')
-rw-r--r--app/views/errors/not_found.html.erb13
-rw-r--r--app/views/errors/not_found.html.slim31
-rw-r--r--app/views/errors/server_error.html.erb14
-rw-r--r--app/views/errors/server_error.html.slim33
4 files changed, 64 insertions, 27 deletions
diff --git a/app/views/errors/not_found.html.erb b/app/views/errors/not_found.html.erb
deleted file mode 100644
index 8d761413f..000000000
--- a/app/views/errors/not_found.html.erb
+++ /dev/null
@@ -1,13 +0,0 @@
- <div class="error">
- <h2>D&eacute;sol&eacute;, la page demand&eacute;e n'existe pas</h2>
- <a href="http://www.chouette.mobi/spip.php?rubrique38" target="_blank">N'h&eacute;sitez pas &agrave; nous d&eacute;crire le probl&egrave;me</a>, nous essaierons de le r&eacute;soudre.<br/>Merci d'avance<br/> <br/>
- Vous pouvez n&eacute;anmoins continuer &agrave; utiliser l'application CHOUETTE<br/>
- <br/>
- <br/>
- <br/>
- <br/>
- <h2>The page you were looking for doesn't exist.</h2>
- You may have mistyped the address or the page may have moved. <br/>
- <a href="http://www.chouette.mobi/spip.php?rubrique38" target="_blank">Please describe us what happened</a>, we'll try to come back with an answer. <br/>Thank you. <br/> <br/>
- You can still continue the use the CHOUETTE application. <br/>
- </div>
diff --git a/app/views/errors/not_found.html.slim b/app/views/errors/not_found.html.slim
new file mode 100644
index 000000000..30107d2dc
--- /dev/null
+++ b/app/views/errors/not_found.html.slim
@@ -0,0 +1,31 @@
+.error
+ h2 = "D&eacute;sol&eacute;, la page demand&eacute;e n'existe pas"
+
+ a href="http://www.chouette.mobi/spip.php?rubrique38" target="_blank"
+ = "N'h&eacute;sitez pas &agrave; nous d&eacute;crire le probl&egrave;me"
+ = ", nous essaierons de le r&eacute;soudre."
+ br
+ = "Merci d'avance"
+ br
+
+ = "Vous pouvez n&eacute;anmoins continuer &agrave; utiliser l'application CHOUETTE"
+ br
+ br
+ br
+ br
+ br
+
+ h2 = "The page you were looking for doesn't exist."
+
+ = "You may have mistyped the address or the page may have moved."
+ br
+
+ a href="http://www.chouette.mobi/spip.php?rubrique38" target="_blank"
+ = "Please describe us what happened"
+ = ", we'll try to come back with an answer."
+ br
+ = "Thank you."
+ br
+ br
+ = "You can still continue the use the CHOUETTE application."
+ br \ No newline at end of file
diff --git a/app/views/errors/server_error.html.erb b/app/views/errors/server_error.html.erb
deleted file mode 100644
index 0a000df2e..000000000
--- a/app/views/errors/server_error.html.erb
+++ /dev/null
@@ -1,14 +0,0 @@
- <div class="error">
- <h2>D&eacute;sol&eacute;, une erreur est survenue</h2>
- <a href="http://www.chouette.mobi/spip.php?rubrique38" target="_blank">N'h&eacute;sitez pas &agrave; nous d&eacute;crire le probl&egrave;me</a>, nous essaierons de le r&eacute;soudre.<br/>Merci d'avance<br/> <br/>
- Vous pouvez n&eacute;anmoins continuer &agrave; utiliser l'application CHOUETTE<br/>
- <br/>
- <br/>
- <br/>
- <br/>
- <h2>We're sorry, but something went wrong.</h2>
- You may have mistyped the address or the page may have moved. <br/>
- <a href="http://www.chouette.mobi/spip.php?rubrique38" target="_blank">Please describe us what happened</a>, we'll try to come back with an answer. <br/>Thank you. <br/> <br/>
- You can still continue the use the CHOUETTE application. <br/>
- </div>
-
diff --git a/app/views/errors/server_error.html.slim b/app/views/errors/server_error.html.slim
new file mode 100644
index 000000000..3fe910196
--- /dev/null
+++ b/app/views/errors/server_error.html.slim
@@ -0,0 +1,33 @@
+.error
+ h2 = "D&eacute;sol&eacute;, une erreur est survenue"
+
+ a href="http://www.chouette.mobi/spip.php?rubrique38" target="_blank"
+ = "N'h&eacute;sitez pas &agrave; nous d&eacute;crire le probl&egrave;me"
+ = ", nous essaierons de le r&eacute;soudre."
+ br
+ = "Merci d'avance"
+ br
+ br
+
+ = "Vous pouvez n&eacute;anmoins continuer &agrave; utiliser l'application CHOUETTE"
+ br
+ br
+ br
+ br
+ br
+
+ h2 = "We're sorry, but something went wrong."
+
+ = "You may have mistyped the address or the page may have moved."
+ br
+
+ a href="http://www.chouette.mobi/spip.php?rubrique38" target="_blank"
+ = "Please describe us what happened"
+ = ", we'll try to come back with an answer."
+ br
+ = "Thank you."
+ br
+ br
+
+ = "You can still continue the use the CHOUETTE application."
+ br \ No newline at end of file