Bug#703118: do not show randomly generated avatar icons if not avatar exists

Antonio Terceiro <[email protected]>
Newsgroups gmane.linux.debian.devel.debbugs
Message-ID <20130316013922.GA4683__1832.72580984539$1363398162$gmane$org@debian.org>
On Fri, Mar 15, 2013 at 02:51:26PM -0700, Holger Levsen wrote:
> package: debbugs
> x-debbugs-cc: [email protected]
> 
> Hi,
> 
> On Freitag, 15. März 2013, Don Armstrong wrote:
> > Finally, if someone wants an option to disable avatars in the
> > bugreport view, I'd certainly add a patch which did that, or consider
> > implementing it myself if an appropriate wishlist bug was filed with
> > enough support against the debbugs package.
> 
> currently the BTS displays a randomly generated "icon" for a bts-user if no 
> avatar can be found. IMO the default should be not to display any icon if no 
> avatar exists.

This can be accomplished by replacing d=retro in the avatar URL, and
using the avatar image as the background of a <div> tag instead of an
actual <img> tag, so unexisting avatars returning 404 will not be
displayed by browsers as "broken image" icons (the <div> tag will just
have no background).

-- 
Antonio Terceiro <[email protected]>
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlFDzUoACgkQDOM8kQ+cso/l0ACfcBHxaBtkeN0nTM/YD5T4Koa4
19MAnjpexsOEcjtc63+ee/mSIVF6pKB2
=+a+U
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.