#NEWLINE# def buildBlock( self , b ) : #NEWLINE# #INDENT# b . div ( class_ = 'navigation' , marginbottom = Em ( 2 ) , paddingright = Em ( 1 ) , backgroundcolor = Color ( '#EEE' ) ) #NEWLINE# for article in self . adapter . getRankedArticles ( ) : #NEWLINE# #INDENT# if article . title : #NEWLINE# #INDENT# b . a ( href = ( '/article-%s' % article . id ) , fontsize = Em ( 0.8 ) , marginright = Em ( 1 ) , color = Color ( '#888' ) ) #NEWLINE# b . text ( self . title ) #NEWLINE# b . _a ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# b . text ( ( 'No title for article "%s"' % article . id ) ) #NEWLINE# #UNINDENT# b . br ( ) #NEWLINE# #UNINDENT# b . _div ( )