# HG changeset patch # User Søren Løvborg # Date 1439561508 -7200 # 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 -r 4eb390c2d2bd -r 40c6fb22f3d6 kallithea/lib/helpers.py --- a/kallithea/lib/helpers.py Mon Aug 17 01:11:42 2015 +0200 +++ b/kallithea/lib/helpers.py Fri Aug 14 16:11:48 2015 +0200 @@ -850,7 +850,7 @@ # 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 -r 4eb390c2d2bd -r 40c6fb22f3d6 kallithea/public/js/base.js --- a/kallithea/public/js/base.js Mon Aug 17 01:11:42 2015 +0200 +++ b/kallithea/public/js/base.js Fri Aug 14 16:11:48 2015 +0200 @@ -1067,7 +1067,7 @@ }; 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); }