;; Events account-nav-item fragment handler ;; returns: sx ;; ;; Renders tickets + bookings links for the account dashboard nav. (defhandler account-nav-item (&key) (let ((styles (or (jinja-global "styles") (dict))) (nav-class (or (get styles "nav_button") "")) (hx-select "#main-panel, #search-mobile, #search-count-mobile, #search-desktop, #search-count-desktop, #menu-items-nav-wrapper")) (<> (~nav-group-link :href (app-url "account" "/tickets/") :hx-select hx-select :nav-class nav-class :label "tickets") (~nav-group-link :href (app-url "account" "/bookings/") :hx-select hx-select :nav-class nav-class :label "bookings"))))