Usability & design improvements

This commit is contained in:
Dmitriy Zaporozhets 2012-02-18 14:12:48 +02:00
parent 9a24ccdea1
commit 94db8a1c33
21 changed files with 190 additions and 89 deletions

View file

@ -42,7 +42,7 @@ class Commit
end
def author_name
author.name
author.name.force_encoding("UTF-8")
end
def committer_name

View file

@ -65,7 +65,11 @@ class User < ActiveRecord::Base
def self.generate_random_password
(0...8).map{ ('a'..'z').to_a[rand(26)] }.join
end
end
def first_name
name.split(" ").first unless name.blank?
end
def self.find_for_ldap_auth(omniauth)
username = omniauth.sAMAccountName[0]