#NEWLINE# def dashboard( request ) : #NEWLINE# #INDENT# ret_val = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for site in Site . objects . all ( ) : #NEWLINE# #INDENT# results = site . latest_results ( ) #NEWLINE# succ = True #NEWLINE# for result in results : #NEWLINE# #INDENT# if ( not result . succeeded ) : #NEWLINE# #INDENT# succ = False #NEWLINE# fail = result #NEWLINE# #UNINDENT# #UNINDENT# ret_val [ site . slug ] = succ #NEWLINE# #UNINDENT# return render_to_response ( 'kong/dashboard.html' , { #NEWLINE# #INDENT# 'results' : ret_val , #NEWLINE# #UNINDENT# } , context_instance = RequestContext ( request ) )