

@presentation.render_for(Board, 'item')
def render_Board_item(self, h, comp, *args):

    def answer():
        comp.answer(self.data.id)
    url = self.data.url
    with h.li:
        (h << h.SyncRenderer().a(self.data.title, href=url, class_='boardItemLabel', title=self.data.description))
        with h.div(class_='actions'):
            (h << self.comp_members.render(h, 'members'))
            if security.has_permissions('manage', self):
                (h << h.a(h.i(class_='ico-btn icon-box-add'), class_='archive', title=_('Archive this board')).action(self.archive, comp))
            else:
                onclick = ('return confirm("%s")' % _("You won't be able to access this board anymore. Are you sure you want to leave it anyway?"))
                (h << h.SyncRenderer().a(h.i(class_='ico-btn icon-exit'), class_='leave', title=_('Leave this board'), onclick=onclick).action(self.leave, comp))
    return h.root

dataset/ETHPy150Open Net-ng/kansha/kansha/board/view.py render_Board_item/original