def _diff_expand_link(context, expandable, text, tooltip, expand_pos, image_class):
 return render_to_string(u'diffviewer/expand_link.html', {u'tooltip': tooltip, u'text': text, u'chunk': context[u'chunk'], u'file': context[u'file'], u'expand_pos': expand_pos, u'image_class': image_class, u'expandable': expandable})

def _diff_expand_link ( context , expandable , text , tooltip , expand_pos , image_class ) : return render_to_string ( u'diffviewer/expand_link.html' , { u'tooltip' : tooltip , u'text' : text , u'chunk' : context [ u'chunk' ] , u'file' : context [ u'file' ] , u'expand_pos' : expand_pos , u'image_class' : image_class , u'expandable' : expandable } )
utility function to render a diff expansion link .