success()->isDefined()) { add_info('All feeds refreshed successfully'); } else { add_error(nl2br($refreshResult->error()->get())); } } $list = match (true) { key_exists('bookmarked', $_GET) => ItemList::allBookmarked(), default => ItemList::allUnread() }; $title = "Your $list->itemType Items"; page_head($title); echo "

$title"; if ($list->itemType == 'Unread') { echo '   ' . hx_get('/?refresh', '(Refresh All Feeds)', 'class=refresh hx-indicator="closest h1"') . 'Refreshing…'; } echo '

'; $list->render(); page_foot();