Merge pull request #5816 from svbergerem/remove-footer-stream-pages

Remove footer from stream and profile pages
This commit is contained in:
Jonne Haß 2015-03-26 17:29:23 +01:00
commit 2eaa5a4d3b
5 changed files with 9 additions and 0 deletions

View file

@ -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)
* 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)
* Remove footer from stream pages [#5816](https://github.com/diaspora/diaspora/pull/5816)
# 0.4.1.2

View file

@ -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]

View file

@ -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

View file

@ -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

View file

@ -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]