@presentation.render_for(Board, 'num_matches')
def render_Board_num_matches(self, h, comp, *args):
    if self.card_matches:

        if None in self.card_matches:
            h << h.span(_(u'No matches'), class_='nomatches')
        else:
            n = len(self.card_matches)
            h << (_N(u'%d match', u'%d matches', n) % n)
    else:
        h << u' '
    return h.root
dataset/ETHPy150Open Net-ng/kansha/kansha/board/view.py/render_Board_num_matches/original