Skip to content

Commit

Permalink
951 - Dashboard Task Row Clickable (rubyforgood#966)
Browse files Browse the repository at this point in the history
* Dashboard Task Row Clickable

* Update links for task table columns to point to pet task tab
  • Loading branch information
sarvaiyanidhi authored Sep 10, 2024
1 parent 65ad86d commit 62747a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def context_authorize!

def set_pets_with_overdue_tasks
@pagy, @pets = pagy(Pet.with_overdue_tasks, limit: 5)
@column_name = "Count"
@column_name = "Overdue Tasks"
@header_title = "Overdue Pet Tasks"
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
<%= render PetAvatarComponent.new(pet)%>
<div class="ms-3">
<h4 class="mb-0">
<%= link_to pet.name, staff_pet_path(pet), class: 'text-inherit', data: { turbo: false } %>
<%= link_to pet.name, staff_pet_path(pet, active_tab: 'tasks'), class: 'text-inherit', data: { turbo: false } %>
</h4>
</div>
</div>
</td>
<td>
<div class="d-flex justify-content-center">
<%= pet.sex %>
<%= link_to pet.sex, staff_pet_path(pet, active_tab: 'tasks'), class: 'text-inherit', data: { turbo: false } %>
</div>
</td>
<td>
Expand Down

0 comments on commit 62747a6

Please sign in to comment.