Use mailto in error message
This commit is contained in:
parent
441e123e8a
commit
b60805a54c
2 changed files with 6 additions and 1 deletions
|
@ -8,6 +8,11 @@
|
||||||
.alert-danger {
|
.alert-danger {
|
||||||
background-color: $medium-red;
|
background-color: $medium-red;
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #FFFFFF;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.alert-success {
|
.alert-success {
|
||||||
|
|
|
@ -16,7 +16,7 @@ class SupportController < ApplicationController
|
||||||
redirect_to root_path
|
redirect_to root_path
|
||||||
else
|
else
|
||||||
setup_context
|
setup_context
|
||||||
flash.now.alert = "Une erreur est survenue. Vous pouvez nous contactez à #{CONTACT_EMAIL}."
|
flash.now.alert = "Une erreur est survenue. Vous pouvez nous contactez à #{view_context.mail_to(CONTACT_EMAIL)}."
|
||||||
|
|
||||||
render :index
|
render :index
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue