From 3c2b085b2169be6f5880294bf95d27d4c899ae40 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Fri, 7 Jun 2013 17:31:12 +0300 Subject: Use navless layout when it makes sense --- app/controllers/users_controller.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/controllers/users_controller.rb') diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index e027057fe65..4947c33f959 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -1,7 +1,11 @@ class UsersController < ApplicationController + layout 'navless' + def show @user = User.find_by_username!(params[:username]) @projects = @user.authorized_projects.where('projects.id in (?)', current_user.authorized_projects.map(&:id)) @events = @user.recent_events.where(project_id: @projects.map(&:id)).limit(20) + + @title = @user.name end end -- cgit v1.2.1