From 234c866e2849f09bd69428cc9e5cefe111ef1535 Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Fri, 27 Jun 2025 17:32:16 -0700 Subject: [PATCH] Add links to ~lebron petpage --- app/views/items/_item_header.html.haml | 5 ++--- app/views/items/sources.html.haml | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app/views/items/_item_header.html.haml b/app/views/items/_item_header.html.haml index 9925dc5f..3b6445d9 100644 --- a/app/views/items/_item_header.html.haml +++ b/app/views/items/_item_header.html.haml @@ -33,9 +33,8 @@ = link_to t('items.show.resources.jn_items'), jn_items_url_for(item) = link_to t('items.show.resources.impress_2020'), impress_2020_url_for(item) - if item.nc_trade_value - %span{ - title: nc_trade_value_updated_at_text(item.nc_trade_value) - } + = link_to 'https://www.neopets.com/~lebron', + title: nc_trade_value_updated_at_text(item.nc_trade_value) do = t 'items.show.resources.lebron', value: nc_trade_value_estimate_text(item.nc_trade_value) - unless item.nc? diff --git a/app/views/items/sources.html.haml b/app/views/items/sources.html.haml index 04906b2c..58e9375a 100644 --- a/app/views/items/sources.html.haml +++ b/app/views/items/sources.html.haml @@ -225,14 +225,14 @@ - content_for :subtitle, flush: true do - if item.nc_trade_value.present? - if nc_trade_value_is_estimate(item.nc_trade_value) - = content_tag :span, + = link_to 'https://www.neopets.com/~lebron', target: '_blank', class: "nc-trade-guide-info-link", title: 'Lebron keeps track of approximate "capsule" values of NC items for trading. Items with similar values can often be traded for one another. This is an estimate, not a rule!' do %span.nc-trade-guide-info-label [Lebron] Estimated value: = nc_trade_value_estimate_text(item.nc_trade_value) - else - = content_tag :span, + = link_to 'https://www.neopets.com/~lebron', target: '_blank', class: "nc-trade-guide-info-link", title: "Lebron keeps track of how to get certain special items, even when there isn't a clear NC trade estimate." do %span.nc-trade-guide-info-label [Lebron]