mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	UI: long organization name in create repository owner list
This commit is contained in:
		@@ -373,6 +373,15 @@ func (u *User) DisplayName() string {
 | 
			
		||||
	return u.Name
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// ShortName returns shorted user name with given maximum length,
 | 
			
		||||
// it adds "..." at the end if user name has more length than maximum.
 | 
			
		||||
func (u *User) ShortName(length int) string {
 | 
			
		||||
	if len(u.Name) < length {
 | 
			
		||||
		return u.Name
 | 
			
		||||
	}
 | 
			
		||||
	return u.Name[:length] + "..."
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// IsUserExist checks if given user name exist,
 | 
			
		||||
// the user name should be noncased unique.
 | 
			
		||||
// If uid is presented, then check will rule out that one,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user