diff --git a/app/assets/stylesheets/custom.scss b/app/assets/stylesheets/custom.scss
index d7c78ac9b5c..ae0daed9357 100644
--- a/app/assets/stylesheets/custom.scss
+++ b/app/assets/stylesheets/custom.scss
@@ -17,6 +17,9 @@
.login a {
margin-top: 1.3rem;
}
+ .signup {
+ text-align: right;
+ }
li {
a {
font-size: 1.3rem;
@@ -25,5 +28,17 @@
}
}
}
+}
+.auth-page {
+ .auth-image {
+ background-image: linear-gradient($brand, $white);
+ .logo img {
+ border-radius: 50%;
+ border: solid 3px $white;
+ height: auto;
+ width: 100%;
+ text-align: center;
+ }
+ }
}
diff --git a/app/views/custom/devise/menu/_login_items.html.erb b/app/views/custom/devise/menu/_login_items.html.erb
index 8a6fa344bad..887f180be82 100644
--- a/app/views/custom/devise/menu/_login_items.html.erb
+++ b/app/views/custom/devise/menu/_login_items.html.erb
@@ -42,7 +42,7 @@
<%= link_to t("devise_views.menu.login_items.login"),
new_user_session_path, rel: "nofollow" %>
-
+
Pas encore inscrit ?
<%= link_to t("devise_views.menu.login_items.signup"),
new_user_registration_path, rel: "nofollow", class: "button large" %>
diff --git a/app/views/custom/layouts/devise.html.erb b/app/views/custom/layouts/devise.html.erb
new file mode 100644
index 00000000000..604f39ab958
--- /dev/null
+++ b/app/views/custom/layouts/devise.html.erb
@@ -0,0 +1,44 @@
+
+
+
+
+
+
+ <%= content_for?(:title) ? yield(:title) : "Gobierno abierto" %>
+ <%= render "layouts/meta_tags" %>
+ <%= stylesheet_link_tag "application" %>
+ <%= javascript_include_tag "application", 'data-turbolinks-track' => true %>
+ <%= csrf_meta_tags %>
+ <%= favicon_link_tag "favicon.ico" %>
+
+
+
+
+
+
+ <%= link_to root_path do %>
+ <%= image_tag(image_path_for('logo_header.png'), class: 'float-left', alt: t("layouts.header.logo")) %>
+ <% end %>
+
+
+
+
+
+
+
+ <%= render 'layouts/flash' %>
+
+ <%= yield %>
+
+
+
+
+
+
+
+
+
+
+
diff --git a/config/application_custom.rb b/config/application_custom.rb
index 8596847da11..f97b923be25 100644
--- a/config/application_custom.rb
+++ b/config/application_custom.rb
@@ -1,7 +1,11 @@
module Consul
class Application < Rails::Application
config.i18n.default_locale = :fr
- config.i18n.available_locales = [:fr, :en]
config.time_zone = 'Europe/Paris'
+ if Rails.env == 'test'
+ config.i18n.available_locales = [:fr, :en]
+ else
+ config.i18n.available_locales = [:fr]
+ end
end
end