# HG changeset patch # User Søren Løvborg # Date 2015-08-14 16:11:48 # Node ID 40c6fb22f3d64abef69878eaf635267a87dad272 # Parent 4eb390c2d2bddced1e69a05557b3188db50fd53a misc: remove alt-text from Gravatar images The alternative text should convey the same information as the image, something which the text "gravatar" does not. (In a context where the gravatar is used on its own, the username could be a useful alt-text - and title-text - but it's not apparent that this is ever the case.) diff --git a/kallithea/lib/helpers.py b/kallithea/lib/helpers.py --- a/kallithea/lib/helpers.py +++ b/kallithea/lib/helpers.py @@ -850,7 +850,7 @@ def gravatar(email_address, cls='', size # here it makes sense to use style="width: ..." (instead of, say, a # stylesheet) because we using this to generate a high-res (retina) size - tmpl = """gravatar""" + tmpl = '' # if src is empty then there was no gravatar, so we use a font icon if not src: diff --git a/kallithea/public/js/base.js b/kallithea/public/js/base.js --- a/kallithea/public/js/base.js +++ b/kallithea/public/js/base.js @@ -1067,7 +1067,7 @@ var autocompleteHighlightMatch = functio }; var gravatar = function(link, size, cssclass) { - var elem = 'gravatar'.format(size, link, cssclass); + var elem = ''.format(size, link, cssclass); if (!link) { elem = ''.format(size, cssclass); }