djblets.gravatars.templatetags.gravatars¶
- Output the HTML for displaying a user’s Gravatar. - This can take an optional size of the image (defaults to 80 if not specified). - This is also influenced by the following settings in - settings.py:- GRAVATAR_SIZE:
- Default size for Gravatars.
- GRAVATAR_RATING:
- Maximum allowed rating. This should be one of: g,pg,r,x
- GRAVATAR_DEFAULT:
- Default image set to show if the user hasn’t specified a Gravatar.
This should be one of: identicon,monsterid,wavatar
 - See https://www.gravatar.com/ for more information. - Parameters: - context (django.template.RequestContext) – The context for the page.
- user (django.contrib.auth.models.User) – The user for the Gravatar.
- size (int, optional) – The size of the Gravatar. Defaults to 80.
 - Returns: - The HTML for displaying the Gravatar. - Return type: 
- Output the URL for a Gravatar for the given email address. - This can take an optional size of the image (defaults to 80 if not specified). - This is also influenced by the following settings in - settings.py:- GRAVATAR_SIZE:
- Default size for Gravatars.
- GRAVATAR_RATING:
- Maximum allowed rating. This should be one of: g,pg,r,x
- GRAVATAR_DEFAULT:
- Default image set to show if the user hasn’t specified a Gravatar.
This should be one of: identicon,monsterid,wavatar
 - See https://www.gravatar.com/ for more information. - Parameters: - context (django.template.RequestContext) – The context for the page.
- email (unicode) – The e-mail address for the user.
- size (int, optional) – The size of the Gravatar. Defaults to 80.
 - Returns: - The HTML for displaying the Gravatar. - Return type: 
