Merge branch 'dev' of dev.gitlabhq.com:gitlabhq into dev
This commit is contained in:
commit
84457708d8
134 changed files with 1462 additions and 1475 deletions
|
@ -20,7 +20,7 @@ class Admin::MailerController < ApplicationController
|
|||
else
|
||||
render :file => 'notify/note_wall_email.html.haml', :layout => 'notify'
|
||||
end
|
||||
rescue
|
||||
rescue
|
||||
render :text => "Preview not avaialble"
|
||||
end
|
||||
|
||||
|
@ -29,7 +29,7 @@ class Admin::MailerController < ApplicationController
|
|||
@password = "DHasJKDHAS!"
|
||||
|
||||
render :file => 'notify/new_user_email.html.haml', :layout => 'notify'
|
||||
rescue
|
||||
rescue
|
||||
render :text => "Preview not avaialble"
|
||||
end
|
||||
|
||||
|
@ -38,7 +38,7 @@ class Admin::MailerController < ApplicationController
|
|||
@user = @issue.assignee
|
||||
@project = @issue.project
|
||||
render :file => 'notify/new_issue_email.html.haml', :layout => 'notify'
|
||||
rescue
|
||||
rescue
|
||||
render :text => "Preview not avaialble"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -21,7 +21,7 @@ class Admin::UsersController < ApplicationController
|
|||
def create
|
||||
admin = params[:user].delete("admin")
|
||||
|
||||
@admin_user = User.new(params[:user])
|
||||
@admin_user = User.new(params[:user])
|
||||
@admin_user.admin = (admin && admin.to_i > 0)
|
||||
|
||||
respond_to do |format|
|
||||
|
@ -39,8 +39,8 @@ class Admin::UsersController < ApplicationController
|
|||
def update
|
||||
admin = params[:user].delete("admin")
|
||||
if params[:user][:password].empty?
|
||||
params[:user].delete(:password)
|
||||
params[:user].delete(:password_confirmation)
|
||||
params[:user].delete(:password)
|
||||
params[:user].delete(:password_confirmation)
|
||||
end
|
||||
|
||||
@admin_user = User.find(params[:id])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue