Use the card number in the results view

This commit is contained in:
Donal McBreen
2025-11-12 18:02:31 +00:00
committed by Mike Dalessio
parent 436d2b525b
commit 7fef6ca9b9
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -40,6 +40,7 @@ class Search
"CASE WHEN #{table_name}.searchable_type = 'Comment' THEN #{table_name}.searchable_id ELSE NULL END as comment_id",
"boards.name as board_name",
"cards.creator_id",
"cards.number as number",
"#{table_name}.created_at as created_at",
"#{sanitized_raw_query} AS query"
].join(","))
+1 -1
View File
@@ -2,7 +2,7 @@
<%= 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_id %> <%= result.card_title %>
# <%= result.number %> <%= result.card_title %>
</h3>
<% if result.card_description.present? %>