From e9e7d305f09ec1c89b9324158f9b55aba09965ac Mon Sep 17 00:00:00 2001 From: Matchu Date: Sun, 21 Oct 2012 15:57:17 -0500 Subject: [PATCH] retire neoitems links, replace with jn items links --- app/helpers/items_helper.rb | 7 ++++--- app/views/items/show.html.haml | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/helpers/items_helper.rb b/app/helpers/items_helper.rb index 618363f4..57302af2 100644 --- a/app/helpers/items_helper.rb +++ b/app/helpers/items_helper.rb @@ -1,5 +1,6 @@ module ItemsHelper - NeoitemsURLFormat = 'http://neoitems.net/search2.php?Name=%s&AndOr=and&Category=All&Special=0&Status=Active&Sort=ItemID&results=15&SearchType=8' + JNItemsURLFormat = 'http://items.jellyneo.net/index.php?go=show_items&name=%s&name_type=exact' + module PetTypeImage Format = 'http://pets.neopets.com/cp/%s/%i/%i.png' @@ -82,8 +83,8 @@ module ItemsHelper nc_icon if item.nc? end - def neoitems_url_for(item) - sprintf(NeoitemsURLFormat, CGI::escape(item.name)) + def jn_items_url_for(item) + sprintf(JNItemsURLFormat, CGI::escape(item.name)) end def shop_wizard_url_for(item) diff --git a/app/views/items/show.html.haml b/app/views/items/show.html.haml index c65c18d0..96ab2750 100644 --- a/app/views/items/show.html.haml +++ b/app/views/items/show.html.haml @@ -9,7 +9,7 @@ = nc_icon_for(@item) - unless @item.rarity.blank? == Rarity: #{@item.rarity_index} (#{@item.rarity}) - = link_to 'NeoItems', neoitems_url_for(@item) + = link_to 'JN Items', jn_items_url_for(@item) - unless @item.nc? = link_to 'Shop Wizard', shop_wizard_url_for(@item) = link_to 'Super Wizard', super_shop_wizard_url_for(@item)