li id=dom_id(element, :page_nav_row) data={ "sortable-url": element_path(element), "form-name": "element", "position-attribute": "position" }
  - if current_page
    =< link_to("##{dom_id(element)}", data: { "turbo": false }) do
      i.bi.bi-boxes.me-2
      span id=dom_id(element, :page_nav_title)
        = "#{element.number} #{element.title}"
      i.bi.bi-grip-vertical.float-end.handle
  - else 
    =< link_to(report_path(element.report, page_id: element.page.id, anchor: dom_id(element)), data: { "turbo": false }) do
      i.bi.bi-boxes.me-2
      span id=dom_id(element, :page_nav_title)
        =< "#{element.number} #{element.title}"
      i.bi.bi-grip-vertical.float-end.handle