Files
fizzy/app/views/searches/_result.html.erb
T
Donal McBreen 28efe28f24 Replace Search::Index with Search::Records
Lean on ActiveRecord models for searching and strip out the raw SQL.
Replaces the search_index_* tables with sharded search_records_* tables
as that allows us to use a Search::Record model name.

A Class is dynamically created for each record table shard so that we
and we can access it via the Search::Record.for_account(account_id)
method.
2025-11-17 09:12:40 -05:00

26 lines
871 B
Plaintext

<li>
<%= link_to result.source, class: "search__result", data: { turbo_frame: "_top", action: "bar#reset" } do %>
<div>
<h3 class="search__title txt--medium margin-none">
# <%= result.card.number %> <%= result.card_title %>
</h3>
<% if result.card_description.present? %>
<div class="search__excerpt">
<%= result.card_description %>
</div>
<% else
if result.comment_body.present? %>
<div class="search__excerpt search__excerpt--comment">
<%= avatar_preview_tag result.card.creator %>
<div>
<%= result.comment_body %>
</div>
</div>
<% end %>
<% end %>
</div>
<div class="overflow-ellipsis translucent txt-ink"><%= result.card.board.name %></div>
<% end %>
</li>