From 8e3d2b994f308e5f3baecd98cff719196e82b14f Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Sun, 21 Jan 2024 06:40:20 -0800 Subject: [PATCH] Oops, link to the user lists page for the not-in-a-list case --- app/views/item_trades/index.html.haml | 4 +++- config/locales/en.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/views/item_trades/index.html.haml b/app/views/item_trades/index.html.haml index 7557585d..238bbe02 100644 --- a/app/views/item_trades/index.html.haml +++ b/app/views/item_trades/index.html.haml @@ -26,6 +26,8 @@ %li= link_to list.name, user_closet_hangers_path(trade.user, anchor: "closet-list-#{list.id}") - else - %span.not-in-a-list= t(".table.not_in_a_list") + = link_to t(".table.not_in_a_list.#{@type}"), user_closet_hangers_path(trade.user, + anchor: "closet-hangers-group-#{@type == :offering}"), + class: "not-in-a-list" - else %p= t(".no_trades_yet") diff --git a/config/locales/en.yml b/config/locales/en.yml index 13c869c2..1c3ea9f6 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -387,7 +387,9 @@ en: lists: Lists last_active: this_week: This week - not_in_a_list: Not in a list + not_in_a_list: + offering: Items they own + seeking: Items they want no_trades_yet: No trades yet! To add your name to this page, add this item to one of your lists, and mark the list as "Trading".