From 77c473115745bcf2813cd3a3a88fddc7f758e574 Mon Sep 17 00:00:00 2001 From: movilla Date: Tue, 13 Aug 2013 13:18:41 +0200 Subject: [PATCH] fix layout on the registration page for mobile --- Changelog.md | 1 + app/controllers/registrations_controller.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog.md b/Changelog.md index 2d6e9bfd1..22acfd715 100644 --- a/Changelog.md +++ b/Changelog.md @@ -35,6 +35,7 @@ * Adjust Facebook character limit to reality [#4380](https://github.com/diaspora/diaspora/issues/4380) * Restore truncated URLs when posting to Twitter [#4211](https://github.com/diaspora/diaspora/issues/4211) * Fix mobile search tags [#4392](https://github.com/diaspora/diaspora/issues/4392) +* Problems with layout the registration page for mobile. [#4396](https://github.com/diaspora/diaspora/issues/4396) ## Features * Admin: add option to find users under 13 (COPPA) [#4252](https://github.com/diaspora/diaspora/pull/4252) diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb index c7377f4ed..57483d287 100644 --- a/app/controllers/registrations_controller.rb +++ b/app/controllers/registrations_controller.rb @@ -5,7 +5,7 @@ class RegistrationsController < Devise::RegistrationsController before_filter :check_registrations_open_or_vaild_invite!, :check_valid_invite! - layout "with_header", :only => [:new] + layout ->(c) { request.format == :mobile ? "application" : "with_header" }, :only => [:new] before_filter -> { @css_framework = :bootstrap }, only: [:new] def create