Skip to content
Extraits de code Groupes Projets
Valider 9c5b9b87 rédigé par Pablo Cuadrado's avatar Pablo Cuadrado
Parcourir les fichiers

:only keyword added to the layout calls

parent c6511c92
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -6,7 +6,7 @@ class ProfilesController < ApplicationController
before_filter :authenticate_user!, :except => ['show']
before_filter -> { @css_framework = :bootstrap }, only: [:show, :edit]
layout ->(c) { request.format == :mobile ? "application" : "with_header_with_footer" }
layout ->(c) { request.format == :mobile ? "application" : "with_header_with_footer" }, only: [:show, :edit]
respond_to :html, :except => [:show]
respond_to :js, :only => :update
......
......@@ -10,7 +10,7 @@ class ServicesController < ApplicationController
before_filter :abort_if_already_authorized, :abort_if_read_only_access, :only => :create
before_filter -> { @css_framework = :bootstrap }, only: [:index]
layout ->(c) { request.format == :mobile ? "application" : "with_header_with_footer" }
layout ->(c) { request.format == :mobile ? "application" : "with_header_with_footer" }, only: [:index]
respond_to :html
respond_to :json, :only => :inviter
......
......@@ -6,7 +6,7 @@ class UsersController < ApplicationController
before_filter :authenticate_user!, :except => [:new, :create, :public, :user_photo]
before_filter -> { @css_framework = :bootstrap }, only: [:privacy_settings, :edit]
layout ->(c) { request.format == :mobile ? "application" : "with_header_with_footer" }
layout ->(c) { request.format == :mobile ? "application" : "with_header_with_footer" }, only: [:privacy_settings, :edit]
use_bootstrap_for :getting_started
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter