1
0
Fork 0
forked from OpenNeo/impress

retire neoitems links, replace with jn items links

This commit is contained in:
Emi Matchu 2012-10-21 15:57:17 -05:00
parent 5601511ad5
commit e9e7d305f0
2 changed files with 5 additions and 4 deletions

View file

@ -1,5 +1,6 @@
module ItemsHelper 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 module PetTypeImage
Format = 'http://pets.neopets.com/cp/%s/%i/%i.png' Format = 'http://pets.neopets.com/cp/%s/%i/%i.png'
@ -82,8 +83,8 @@ module ItemsHelper
nc_icon if item.nc? nc_icon if item.nc?
end end
def neoitems_url_for(item) def jn_items_url_for(item)
sprintf(NeoitemsURLFormat, CGI::escape(item.name)) sprintf(JNItemsURLFormat, CGI::escape(item.name))
end end
def shop_wizard_url_for(item) def shop_wizard_url_for(item)

View file

@ -9,7 +9,7 @@
= nc_icon_for(@item) = nc_icon_for(@item)
- unless @item.rarity.blank? - unless @item.rarity.blank?
== Rarity: #{@item.rarity_index} (#{@item.rarity}) == 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? - unless @item.nc?
= link_to 'Shop Wizard', shop_wizard_url_for(@item) = link_to 'Shop Wizard', shop_wizard_url_for(@item)
= link_to 'Super Wizard', super_shop_wizard_url_for(@item) = link_to 'Super Wizard', super_shop_wizard_url_for(@item)