@core_helper
def popular(type_, number, min=1, title=None):
 if (type_ == 'views'):
  title = ungettext('{number} view', '{number} views', number)
 elif (type_ == 'recent views'):
  title = ungettext('{number} recent view', '{number} recent views', number)
 elif (not title):
  raise Exception('popular() did not recieve a valid type_ or title')
 return snippet('snippets/popular.html', title=title, number=number, min=min)

@ core_helper def popular ( type_ , number , min = 1 , title = None ) : if ( type_ == 'views' ) : title = ungettext ( '{number} view' , '{number} views' , number ) elif ( type_ == 'recent views' ) : title = ungettext ( '{number} recent view' , '{number} recent views' , number ) elif ( not title ) : raise Exception ( 'popular() did not recieve a valid type_ or title' ) return snippet ( 'snippets/popular.html' , title = title , number = number , min = min )
display a popular icon .