def buildFeatured(self, b, articles):
        s = self.style
        for article in articles:
            if not article.poster:
                continue # Only show articles that have some kind of poster image.
            b.div(class_=self.CLASS_FEATURED_ITEM, display=s.itemDisplay,
                clear=s.itemClear, marginbottom=s.itemMarginBottom, width=s.itemWidth,
            )
            b.a(href='/%s-%s' % (self.C.PARAM_ARTICLE, article.id))
            if s.showLevel:
                b.h5(color=s.levelColor, fontsize=s.levelSize, fontweight=s.levelWeight,
                    margintop=s.levelMarginTop)
                b.text(article.level or s.genericLevel)
                b.text(' level')
                b._h5()
            b.img(class_=self.C.CLASS_AUTOWIDTH, width=Perc(60), src=article.poster)
            if s.showName:
                b.h4(color=s.nameColor, fontsize=s.nameSize, fontweight=s.nameWeight,
                     lineheight=s.nameLineHeight)
                b.text(article.name)
                b._h4()
            if s.showTopic and article.topic is not None: # Elements must be defined in global style
                b.text(article.topic)
            b._a()
            if b.e.form[self.C.PARAM_DEBUG]:
                b.text(`article`)
            b._div(comment=self.CLASS_FEATURED_ITEM)
dataset/ETHPy150Open petrvanblokland/Xierpa3/xierpa3/components/featured/featuredbyimagelist.py/FeaturedByImageList.buildFeatured/original