Skip to content
Extraits de code Groupes Projets
Valider 3a202d8f rédigé par Steffen van Bergerem's avatar Steffen van Bergerem
Parcourir les fichiers

Remove footer from stream and profile pages

parent b047013d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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]
......
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