Merge pull request #5816 from svbergerem/remove-footer-stream-pages
Remove footer from stream and profile pages
This commit is contained in:
commit
2eaa5a4d3b
5 changed files with 9 additions and 0 deletions
|
|
@ -203,6 +203,7 @@ diaspora.yml file**. The existing settings from 0.4.x and before will not work a
|
||||||
* Reimplement photo export [#5685](https://github.com/diaspora/diaspora/pull/5685)
|
* Reimplement photo export [#5685](https://github.com/diaspora/diaspora/pull/5685)
|
||||||
* Add participation controls in the single post view [#5722](https://github.com/diaspora/diaspora/pull/5722)
|
* Add participation controls in the single post view [#5722](https://github.com/diaspora/diaspora/pull/5722)
|
||||||
* Display polls on reshares [#5782](https://github.com/diaspora/diaspora/pull/5782)
|
* Display polls on reshares [#5782](https://github.com/diaspora/diaspora/pull/5782)
|
||||||
|
* Remove footer from stream pages [#5816](https://github.com/diaspora/diaspora/pull/5816)
|
||||||
|
|
||||||
# 0.4.1.2
|
# 0.4.1.2
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,8 @@ class PeopleController < ApplicationController
|
||||||
before_action :authenticate_user!, except: [:show, :stream]
|
before_action :authenticate_user!, except: [:show, :stream]
|
||||||
before_action :find_person, only: [:show, :stream, :hovercard]
|
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 :html, :except => [:tag_index]
|
||||||
respond_to :json, :only => [:index, :show]
|
respond_to :json, :only => [:index, :show]
|
||||||
respond_to :js, :only => [:tag_index]
|
respond_to :js, :only => [:tag_index]
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,8 @@ class PhotosController < ApplicationController
|
||||||
before_action :authenticate_user!, :except => :show
|
before_action :authenticate_user!, :except => :show
|
||||||
respond_to :html, :json
|
respond_to :html, :json
|
||||||
|
|
||||||
|
layout proc { request.format == :mobile ? "application" : "with_header" }, only: :index
|
||||||
|
|
||||||
def show
|
def show
|
||||||
@photo = if user_signed_in?
|
@photo = if user_signed_in?
|
||||||
current_user.photos_from(Person.find_by_guid(params[:person_id])).where(id: params[:id]).first
|
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 :save_selected_aspects, :only => :aspects
|
||||||
before_action :redirect_unless_admin, :only => :public
|
before_action :redirect_unless_admin, :only => :public
|
||||||
|
|
||||||
|
layout proc { request.format == :mobile ? "application" : "with_header" }
|
||||||
|
|
||||||
respond_to :html,
|
respond_to :html,
|
||||||
:mobile,
|
:mobile,
|
||||||
:json
|
:json
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,8 @@ class TagsController < ApplicationController
|
||||||
|
|
||||||
helper_method :tag_followed?
|
helper_method :tag_followed?
|
||||||
|
|
||||||
|
layout proc { request.format == :mobile ? "application" : "with_header" }, only: :show
|
||||||
|
|
||||||
respond_to :html, :only => [:show]
|
respond_to :html, :only => [:show]
|
||||||
respond_to :json, :only => [:index, :show]
|
respond_to :json, :only => [:index, :show]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue