def push_item(push): return T.li(class_='push')( T.a(href=push.uri)( common.display_datetime(push.ptime), T.span(' '), T.span(push.name or ''), ), common.user_home_link(push.owner), T.span(class_='state')(common.display_push_state(push)), )
def push_item(push): requests = query.push_requests(push) return T.li(class_='push')( T.div( common.display_datetime(push.ptime), T.a(href=push.uri)(push.name or 'push'), common.user_home_link(push.owner, logic.user_info(push.owner)), T.span(class_='state')(common.display_push_state(push)), class_='headline', ), T.ol(map(common.request_item, requests)) if requests else T.div('No requests.'), )
def push_item(push): return T.li(class_='push')( T.a(href=push.uri)(common.display_datetime(push.ctime)), T.span(common.display_push_state(push)), )