diff --git a/app/controllers/people_controller.rb b/app/controllers/people_controller.rb index a1feaede60189b14c8cf4f09a39dd27f340d322f..ab2b6811f5b12170bfc0465e00df456a3d359259 100644 --- a/app/controllers/people_controller.rb +++ b/app/controllers/people_controller.rb @@ -6,6 +6,8 @@ class PeopleController < ApplicationController before_action :authenticate_user!, except: [:show, :stream] before_action :find_person, only: [:show, :stream, :hovercard] + layout proc { request.format == :mobile ? "application" : "with_header" }, only: %i( show contacts ) + respond_to :html, :except => [:tag_index] respond_to :json, :only => [:index, :show] respond_to :js, :only => [:tag_index] diff --git a/app/controllers/photos_controller.rb b/app/controllers/photos_controller.rb index 674d1ff4a26e982b8710aaed32848e271c78f686..c86c26ea68f1199ff2284a408f68d1b165483c1f 100644 --- a/app/controllers/photos_controller.rb +++ b/app/controllers/photos_controller.rb @@ -6,6 +6,8 @@ class PhotosController < ApplicationController before_action :authenticate_user!, :except => :show respond_to :html, :json + layout proc { request.format == :mobile ? "application" : "with_header" }, only: :index + def show @photo = if user_signed_in? current_user.photos_from(Person.find_by_guid(params[:person_id])).where(id: params[:id]).first diff --git a/app/controllers/streams_controller.rb b/app/controllers/streams_controller.rb index 22c2ecc379c58c8cd059fa6af9616ef9390eed66..52edbe5ec2129630938da978d31c1780329c21e5 100644 --- a/app/controllers/streams_controller.rb +++ b/app/controllers/streams_controller.rb @@ -7,6 +7,8 @@ class StreamsController < ApplicationController before_action :save_selected_aspects, :only => :aspects before_action :redirect_unless_admin, :only => :public + layout proc { request.format == :mobile ? "application" : "with_header" } + respond_to :html, :mobile, :json diff --git a/app/controllers/tags_controller.rb b/app/controllers/tags_controller.rb index 9cea031126d3e4fa8db2890deb04302c3d78ee4d..e8d25dd731a2c70a49e19021c9136f07dbbce99b 100644 --- a/app/controllers/tags_controller.rb +++ b/app/controllers/tags_controller.rb @@ -8,6 +8,8 @@ class TagsController < ApplicationController helper_method :tag_followed? + layout proc { request.format == :mobile ? "application" : "with_header" }, only: :show + respond_to :html, :only => [:show] respond_to :json, :only => [:index, :show]