def avatar_link(self): from mezzanine.core.templatetags.mezzanine_tags import gravatar_url return format_html( "<a href='mailto:{}'><img style='vertical-align:middle; " "margin-right:3px;' src='{}' />{}</a>", self.user_email, gravatar_url(self.email), self.user_name )
def avatar_link(self): from mezzanine.core.templatetags.mezzanine_tags import gravatar_url vars = (self.user_email, gravatar_url(self.email), self.user_name) return ("<a href='mailto:%s'><img style='vertical-align:middle; " "margin-right:3px;' src='%s' />%s</a>" % vars)
def avatar_link(self): from mezzanine.core.templatetags.mezzanine_tags import gravatar_url vars = (self.user_email, gravatar_url(self.email), self.user_name) return ("<a href='mailto:%s'><img style='vertical-align:middle; " "margin-right:3px;' src='%s' />%s</a>" % vars)