#NEWLINE# @ views . app_template_filter ( 'syndication_icon' ) #NEWLINE# def syndication_icon( url ) : #NEWLINE# #INDENT# fmt = '<i class="fa {}"></i>' #NEWLINE# if util . TWITTER_RE . match ( url ) : #NEWLINE# #INDENT# return Markup ( fmt . format ( 'fa-twitter' ) ) #NEWLINE# #UNINDENT# if ( util . FACEBOOK_RE . match ( url ) or util . FACEBOOK_EVENT_RE . match ( url ) ) : #NEWLINE# #INDENT# return Markup ( fmt . format ( 'fa-facebook' ) ) #NEWLINE# #UNINDENT# if util . INSTAGRAM_RE . match ( url ) : #NEWLINE# #INDENT# return Markup ( fmt . format ( 'fa-instagram' ) ) #NEWLINE# #UNINDENT# if util . FLICKR_RE . match ( url ) : #NEWLINE# #INDENT# return Markup ( fmt . format ( 'fa-flickr' ) ) #NEWLINE# #UNINDENT# if util . INDIENEWS_RE . match ( url ) : #NEWLINE# #INDENT# return Markup ( fmt . format ( 'fa-newspaper-o' ) ) #NEWLINE# #UNINDENT# if util . GOODREADS_RE . match ( url ) : #NEWLINE# #INDENT# return Markup ( fmt . format ( 'fa-book' ) ) #NEWLINE# #UNINDENT# if util . GITHUB_RE . match ( fmt ) : #NEWLINE# #INDENT# return Markup ( fmt . format ( 'fa-github' ) ) #NEWLINE# #UNINDENT# return Markup ( fmt . format ( 'fa-paper-plane' ) )