@register.inclusion_tag('horizon/common/_progress_bar.html')
def horizon_progress_bar(current_val, max_val):
 return {'current_val': current_val, 'max_val': max_val}

@ register . inclusion_tag ( 'horizon/common/_progress_bar.html' ) def horizon_progress_bar ( current_val , max_val ) : return { 'current_val' : current_val , 'max_val' : max_val }
renders a progress bar based on parameters passed to the tag .