Skip to content

Commit

Permalink
Add species identifier next to pet name on adoptable pets view
Browse files Browse the repository at this point in the history
  • Loading branch information
coalest committed Oct 19, 2024
1 parent dd2b537 commit be9acf9
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions app/views/organizations/adoptable_pets/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,16 @@
<%= c.with_body do %>
<ul class="list-group list-group-flush">
<li class="list-group-item d-flex justify-content-between align-items-center flex-wrap">
<%= link_to adoptable_pet_path(pet), class: 'text-decoration-none' do %>
<h3 class="card-title text-secondary mb-0">
<%= pet.name %>
</h3>
<% end %>
<div class="d-flex align-items-center justify-content-start gap-3">
<%= link_to adoptable_pet_path(pet), class: 'text-decoration-none' do %>
<h3 class="card-title text-secondary mb-0">
<%= pet.name %>
</h3>
<% end %>
<span class="badge bg-secondary-soft text-secondary">
<%= pet.species %>
</span>
</div>
<% if allowed_to?(:create?, Like, context: {pet: pet}) %>
<div class='text-end' id="like_button_pet_<%= pet.id %>">
<%= render LikeButtonComponent.new(pet: pet, like: @likes_by_id[pet.id]) %>
Expand Down

0 comments on commit be9acf9

Please sign in to comment.