{
if (event.key === 'Enter' || event.key === ' ') {
event.preventDefault();
handleOpen();
}
}}
onContextMenu={handleContextMenu}
data-flx="forum.forum-post-card.card.open"
>
{grid && (
{pinned && (
)}
{isNew && (
{i18n._(D.NEW_BADGE_DESCRIPTOR)}
)}
{tags.slice(0, MAX_CARD_TAGS).map((tag) => (
))}
{tags.length > MAX_CARD_TAGS && (
{`+${tags.length - MAX_CARD_TAGS}`}
)}
{post.name}
{preview != null && (
{authorName && (
{`${authorName}: `}
)}
{preview}
)}
{i18n._(D_POST_COUNT_DESCRIPTOR, {count: post.messageCount})}
{unread && (
{unreadCount > 0
? i18n._(D.UNREAD_MESSAGES_DESCRIPTOR, {count: unreadCount})
: i18n._(D.HAS_UNREAD_MESSAGES_DESCRIPTOR)}
)}
{DateUtils.getRelativeDateString(lastActivity, i18n)}