@register.simple_tag
def auth_name(auth, extra_class=u'fa-4x', separator=u'<br />'):
 params = {u'name': auth, u'extra_class': extra_class, u'separator': separator, u'fa_icon': u'key'}
 if (auth in SOCIALS):
  params.update(SOCIALS[auth])
 if (u'fl_icon' in params):
  html_template = FL_SOCIAL_TEMPLATE
 else:
  html_template = FA_SOCIAL_TEMPLATE
 return mark_safe(html_template.format(**params))

@ register . simple_tag def auth_name ( auth , extra_class = u'fa-4x' , separator = u'<br />' ) : params = { u'name' : auth , u'extra_class' : extra_class , u'separator' : separator , u'fa_icon' : u'key' } if ( auth in SOCIALS ) : params . update ( SOCIALS [ auth ] ) if ( u'fl_icon' in params ) : html_template = FL_SOCIAL_TEMPLATE else : html_template = FA_SOCIAL_TEMPLATE return mark_safe ( html_template . format ( ** params ) )
creates html markup for social authentication method .