From 23e951edcd58308e7a30a01ec7644701534e4099 Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Sat, 27 Dec 2025 19:24:09 -0800 Subject: [PATCH] Add Lebron links when there is no known trade value because the new site has useful trade info anyway! --- app/views/items/_item_header.html.haml | 5 ++++- config/locales/en.yml | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/views/items/_item_header.html.haml b/app/views/items/_item_header.html.haml index addb6ae0..88e0eb43 100644 --- a/app/views/items/_item_header.html.haml +++ b/app/views/items/_item_header.html.haml @@ -35,8 +35,11 @@ - if item.nc_trade_value = link_to lebron_url_for(item), title: nc_trade_value_updated_at_text(item.nc_trade_value) do - = t 'items.show.resources.lebron', + = t 'items.show.resources.lebron_value', value: nc_trade_value_estimate_text(item.nc_trade_value) + - elsif item.nc? + = link_to lebron_url_for(item) do + = t 'items.show.resources.lebron' - unless item.nc? = link_to t('items.show.resources.shop_wizard'), shop_wizard_url_for(item) = link_to t('items.show.resources.trading_post'), trading_post_url_for(item) diff --git a/config/locales/en.yml b/config/locales/en.yml index e3104434..a96038df 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -310,7 +310,8 @@ en: resources: jn_items: JN Items impress_2020: DTI 2020 - lebron: "Lebron: %{value}" + lebron: Lebron + lebron_value: "Lebron: %{value}" shop_wizard: Shop Wizard trading_post: Trades auction_genie: Auctions