Remove footer from stream and profile pages
This commit is contained in:
parent
b047013dd0
commit
3a202d8fa9
4 changed files with 8 additions and 0 deletions
|
|
@ -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]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue