From 62747a6fd24baf1346bee3329b92c453ad824a83 Mon Sep 17 00:00:00 2001 From: Nidhi Sarvaiya Date: Tue, 10 Sep 2024 19:58:39 -0400 Subject: [PATCH] 951 - Dashboard Task Row Clickable (#966) * Dashboard Task Row Clickable * Update links for task table columns to point to pet task tab --- app/controllers/organizations/staff/dashboard_controller.rb | 2 +- .../dashboard/_pets_with_incomplete_or_overdue_tasks.html.erb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/organizations/staff/dashboard_controller.rb b/app/controllers/organizations/staff/dashboard_controller.rb index fde448347..118ba191e 100644 --- a/app/controllers/organizations/staff/dashboard_controller.rb +++ b/app/controllers/organizations/staff/dashboard_controller.rb @@ -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 diff --git a/app/views/organizations/staff/dashboard/_pets_with_incomplete_or_overdue_tasks.html.erb b/app/views/organizations/staff/dashboard/_pets_with_incomplete_or_overdue_tasks.html.erb index 979515931..d63b25cbb 100644 --- a/app/views/organizations/staff/dashboard/_pets_with_incomplete_or_overdue_tasks.html.erb +++ b/app/views/organizations/staff/dashboard/_pets_with_incomplete_or_overdue_tasks.html.erb @@ -17,14 +17,14 @@ <%= render PetAvatarComponent.new(pet)%>

- <%= 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 } %>

- <%= pet.sex %> + <%= link_to pet.sex, staff_pet_path(pet, active_tab: 'tasks'), class: 'text-inherit', data: { turbo: false } %>