Search Engine Optimization fixes
This commit is contained in:
@ -2,8 +2,7 @@ class PagesController < ApplicationController
|
||||
layout 'application', :except => [:home, :social_home]
|
||||
|
||||
def home
|
||||
@menu = 'home'
|
||||
@title = 'Internet of Things'
|
||||
@menu = 'Internet of Things'
|
||||
render layout: 'home'
|
||||
end
|
||||
|
||||
|
@ -62,6 +62,9 @@ class UsersController < ApplicationController
|
||||
# output error if user not found
|
||||
render :text => t(:user_not_found) and return if @user.nil?
|
||||
|
||||
# set page title
|
||||
@title = @user.login || nil
|
||||
|
||||
# if a json or xml request
|
||||
if request.format == :json || request.format == :xml
|
||||
# authenticate the user if the user is logged in (can be via token) or api key matches the target user
|
||||
|
Reference in New Issue
Block a user