forked from OpenNeo/impress
retire neoitems links, replace with jn items links
This commit is contained in:
parent
5601511ad5
commit
e9e7d305f0
2 changed files with 5 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue