Skip to content

Commit 84697c1

Browse files
committed
Update search results display and improve fund logo linking
1 parent e5f0de5 commit 84697c1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

app/views/funds/search.html.erb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@
1515
<div class="row">
1616
<div class="col-lg-9 pe-lg-5">
1717
<% if params[:query].present? %>
18-
<div class="listing-controls rounded p-3 mb-5">
19-
<p class="mb-0"><%= pluralize(@funds.count, 'result') %> for <strong><%= params[:query] %></strong></p>
20-
</div>
2118
<% if @funds.any? %>
19+
<div class="listing-controls rounded p-3 mb-5">
20+
<p class="mb-0"><%= pluralize(@pagy.count, 'result') %> for <strong><%= params[:query] %></strong></p>
21+
</div>
2222
<% @funds.each do |fund| %>
2323
<div class="card mb-4 pb-4 listing d-flex flex-row align-items-center">
24-
<img src="<%= fund.logo_url %>" alt="" class="card-img img-fluid" onerror="this.style.display='none'" style="max-width: 60px;">
24+
<a href="<%= fund_path(fund) %>">
25+
<img src="<%= fund.logo_url %>" alt="" class="card-img img-fluid" onerror="this.style.display='none'" style="max-width: 60px;">
26+
</a>
2527
<div class="card-body p-0 ms-3">
2628
<h3 class="card-title listing__title mt-3">
2729
<a href="<%= fund_path(fund) %>">

0 commit comments

Comments
 (0)