@ -646,7 +646,7 @@ func SVG(icon string, others ...interface{}) template.HTML {
// Avatar renders user avatars. args: user, size (int), class (string)
// Avatar renders user avatars. args: user, size (int), class (string)
func Avatar ( item interface { } , others ... interface { } ) template . HTML {
func Avatar ( item interface { } , others ... interface { } ) template . HTML {
size , class := parseOthers ( avatars . DefaultAvatarPixelSize , "ui avatar vm" , others ... )
size , class := parseOthers ( avatars . DefaultAvatarPixelSize , avatars . DefaultAvatarClass , others ... )
switch t := item . ( type ) {
switch t := item . ( type ) {
case * user_model . User :
case * user_model . User :
@ -677,7 +677,7 @@ func AvatarByAction(action *activities_model.Action, others ...interface{}) temp
// RepoAvatar renders repo avatars. args: repo, size(int), class (string)
// RepoAvatar renders repo avatars. args: repo, size(int), class (string)
func RepoAvatar ( repo * repo_model . Repository , others ... interface { } ) template . HTML {
func RepoAvatar ( repo * repo_model . Repository , others ... interface { } ) template . HTML {
size , class := parseOthers ( avatars . DefaultAvatarPixelSize , "ui avatar" , others ... )
size , class := parseOthers ( avatars . DefaultAvatarPixelSize , avatars . DefaultAvatarClass , others ... )
src := repo . RelAvatarLink ( )
src := repo . RelAvatarLink ( )
if src != "" {
if src != "" {
@ -688,7 +688,7 @@ func RepoAvatar(repo *repo_model.Repository, others ...interface{}) template.HTM
// AvatarByEmail renders avatars by email address. args: email, name, size (int), class (string)
// AvatarByEmail renders avatars by email address. args: email, name, size (int), class (string)
func AvatarByEmail ( email , name string , others ... interface { } ) template . HTML {
func AvatarByEmail ( email , name string , others ... interface { } ) template . HTML {
size , class := parseOthers ( avatars . DefaultAvatarPixelSize , "ui avatar" , others ... )
size , class := parseOthers ( avatars . DefaultAvatarPixelSize , avatars . DefaultAvatarClass , others ... )
src := avatars . GenerateEmailAvatarFastLink ( email , size * setting . Avatar . RenderedSizeFactor )
src := avatars . GenerateEmailAvatarFastLink ( email , size * setting . Avatar . RenderedSizeFactor )
if src != "" {
if src != "" {