@@ -631,7 +631,7 @@ func SVG(icon string, others ...interface{}) template.HTML {
631
631
632
632
// Avatar renders user avatars. args: user, size (int), class (string)
633
633
func Avatar (item interface {}, others ... interface {}) template.HTML {
634
- size , class := parseOthers (avatars .DefaultAvatarPixelSize , "ui avatar image vm" , others ... )
634
+ size , class := parseOthers (avatars .DefaultAvatarPixelSize , "ui avatar vm" , others ... )
635
635
636
636
switch t := item .(type ) {
637
637
case * user_model.User :
@@ -662,7 +662,7 @@ func AvatarByAction(action *activities_model.Action, others ...interface{}) temp
662
662
663
663
// RepoAvatar renders repo avatars. args: repo, size(int), class (string)
664
664
func RepoAvatar (repo * repo_model.Repository , others ... interface {}) template.HTML {
665
- size , class := parseOthers (avatars .DefaultAvatarPixelSize , "ui avatar image " , others ... )
665
+ size , class := parseOthers (avatars .DefaultAvatarPixelSize , "ui avatar" , others ... )
666
666
667
667
src := repo .RelAvatarLink ()
668
668
if src != "" {
@@ -673,7 +673,7 @@ func RepoAvatar(repo *repo_model.Repository, others ...interface{}) template.HTM
673
673
674
674
// AvatarByEmail renders avatars by email address. args: email, name, size (int), class (string)
675
675
func AvatarByEmail (email , name string , others ... interface {}) template.HTML {
676
- size , class := parseOthers (avatars .DefaultAvatarPixelSize , "ui avatar image " , others ... )
676
+ size , class := parseOthers (avatars .DefaultAvatarPixelSize , "ui avatar" , others ... )
677
677
src := avatars .GenerateEmailAvatarFastLink (email , size * setting .Avatar .RenderedSizeFactor )
678
678
679
679
if src != "" {
0 commit comments