From 04ffc30e92cb91bcbec2cc1f56ac63e08c3528ae Mon Sep 17 00:00:00 2001 From: Steve C Date: Fri, 30 Aug 2024 01:46:59 -0400 Subject: [PATCH] Remove SSW link, does not work on neopets anymore --- app/helpers/items_helper.rb | 9 +-------- app/views/items/_item_header.html.haml | 1 - config/locales/en-MEEP.yml | 1 - config/locales/en.yml | 1 - config/locales/es.yml | 1 - config/locales/pt.yml | 1 - 6 files changed, 1 insertion(+), 13 deletions(-) diff --git a/app/helpers/items_helper.rb b/app/helpers/items_helper.rb index 31f0bfde..b28e1f46 100644 --- a/app/helpers/items_helper.rb +++ b/app/helpers/items_helper.rb @@ -112,14 +112,7 @@ module ItemsHelper item_or_name = item_or_name.name if item_or_name.is_a? Item SHOP_WIZARD_URL_TEMPLATE.expand(string: item_or_name).to_s end - - SUPER_SHOP_WIZARD_URL_TEMPLATE = Addressable::Template.new( - "https://www.neopets.com/portal/supershopwiz.phtml{?string}" - ) - def super_shop_wizard_url_for(item) - SUPER_SHOP_WIZARD_URL_TEMPLATE.expand(string: item.name).to_s - end - + TRADING_POST_URL_TEMPLATE = Addressable::Template.new( "https://www.neopets.com/island/tradingpost.phtml?type=browse&criteria=item_exact{&search_string}" ) diff --git a/app/views/items/_item_header.html.haml b/app/views/items/_item_header.html.haml index 68dc9d5f..4df34e2c 100644 --- a/app/views/items/_item_header.html.haml +++ b/app/views/items/_item_header.html.haml @@ -38,7 +38,6 @@ title: nc_trade_value_updated_at_text(item.nc_trade_value) - unless item.nc? = link_to t('items.show.resources.shop_wizard'), shop_wizard_url_for(item) - = link_to t('items.show.resources.super_shop_wizard'), super_shop_wizard_url_for(item) = link_to t('items.show.resources.trading_post'), trading_post_url_for(item) = link_to t('items.show.resources.auction_genie'), auction_genie_url_for(item) diff --git a/config/locales/en-MEEP.yml b/config/locales/en-MEEP.yml index ca879192..378403f6 100644 --- a/config/locales/en-MEEP.yml +++ b/config/locales/en-MEEP.yml @@ -267,7 +267,6 @@ en-MEEP: resources: jn_items: JN Meepits shop_wizard: Meep Wizard - super_shop_wizard: Meeper Wizard trading_post: Treeps auction_genie: Aucteeps closet_hangers: diff --git a/config/locales/en.yml b/config/locales/en.yml index 582b501a..b10bc8c5 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -311,7 +311,6 @@ en: impress_2020: DTI 2020 owls: "Owls: %{value}" shop_wizard: Shop Wizard - super_shop_wizard: Super Wizard trading_post: Trades auction_genie: Auctions closet_hangers: diff --git a/config/locales/es.yml b/config/locales/es.yml index 4b5aeee6..73542c13 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -211,7 +211,6 @@ es: resources: jn_items: Objetos de JN shop_wizard: Asistente de Tiendas - super_shop_wizard: Super Asistente de Tiendas trading_post: Quiosco del trueque auction_genie: Subastas closet_hangers: diff --git a/config/locales/pt.yml b/config/locales/pt.yml index 900a5c84..0c9abef4 100644 --- a/config/locales/pt.yml +++ b/config/locales/pt.yml @@ -209,7 +209,6 @@ pt: resources: jn_items: JN Itens shop_wizard: Mágico Pecincheiro - super_shop_wizard: Super Mágico Pecincheiro trading_post: Trocas auction_genie: Leilões closet_hangers: