Skip to content

Commit

Permalink
Update search results display and improve fund logo linking
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Feb 24, 2025
1 parent e5f0de5 commit 84697c1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/views/funds/search.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@
<div class="row">
<div class="col-lg-9 pe-lg-5">
<% if params[:query].present? %>
<div class="listing-controls rounded p-3 mb-5">
<p class="mb-0"><%= pluralize(@funds.count, 'result') %> for <strong><%= params[:query] %></strong></p>
</div>
<% if @funds.any? %>
<div class="listing-controls rounded p-3 mb-5">
<p class="mb-0"><%= pluralize(@pagy.count, 'result') %> for <strong><%= params[:query] %></strong></p>
</div>
<% @funds.each do |fund| %>
<div class="card mb-4 pb-4 listing d-flex flex-row align-items-center">
<img src="<%= fund.logo_url %>" alt="" class="card-img img-fluid" onerror="this.style.display='none'" style="max-width: 60px;">
<a href="<%= fund_path(fund) %>">
<img src="<%= fund.logo_url %>" alt="" class="card-img img-fluid" onerror="this.style.display='none'" style="max-width: 60px;">
</a>
<div class="card-body p-0 ms-3">
<h3 class="card-title listing__title mt-3">
<a href="<%= fund_path(fund) %>">
Expand Down

0 comments on commit 84697c1

Please sign in to comment.