# HG changeset patch # User domruf # Date 1507663996 -7200 # Node ID 58d27c7ad80e2ba84cf57ab28f87cc5fc4e659c3 # Parent 77a88040a262d2a95c01cb66a52dc4d2e1215002 gravatar: use icon-gravatar for default gravatar sizing and styling instead of icon-empty We may want to use a different style for gravatar then for icon-empty, so we should give it its own class, but still consider it an icon, like the default icon-user is. diff -r 77a88040a262 -r 58d27c7ad80e kallithea/lib/helpers.py --- a/kallithea/lib/helpers.py Mon Oct 23 22:52:50 2017 +0200 +++ b/kallithea/lib/helpers.py Tue Oct 10 21:33:16 2017 +0200 @@ -878,7 +878,7 @@ if src: # here it makes sense to use style="width: ..." (instead of, say, a # stylesheet) because we using this to generate a high-res (retina) size - html = ('').format(cls=cls, size=size, src=src) diff -r 77a88040a262 -r 58d27c7ad80e kallithea/public/css/contextbar.css --- a/kallithea/public/css/contextbar.css Mon Oct 23 22:52:50 2017 +0200 +++ b/kallithea/public/css/contextbar.css Tue Oct 10 21:33:16 2017 +0200 @@ -10,7 +10,7 @@ margin: -2px 0 -4px 0; /* background-color: red; /* for debugging */ } -/* Note: class 'icon-empty' can be used to get this styling without an actual glyph */ +/* Note: class 'icon-empty' or 'icon-gravatar' can be used to get icon styling without an actual glyph */ /* css classes for diff file status ... it'd be nice if css had a way to inherit from another class but alas, we must make sure this content is the same from the icon font file */ diff -r 77a88040a262 -r 58d27c7ad80e kallithea/public/js/base.js --- a/kallithea/public/js/base.js Mon Oct 23 22:52:50 2017 +0200 +++ b/kallithea/public/js/base.js Tue Oct 10 21:33:16 2017 +0200 @@ -1070,7 +1070,7 @@ if (gravatar_lnk == 'default') { return ''.format(size, cssclass); } - return ('').format(size, gravatar_lnk, cssclass); }