forked from OpenNeo/impress
Compare commits
1 commit
e80a49a086
...
2faa89dd4c
Author | SHA1 | Date | |
---|---|---|---|
2faa89dd4c |
6 changed files with 13 additions and 1 deletions
|
@ -112,7 +112,14 @@ 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}"
|
||||
)
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
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)
|
||||
|
||||
|
|
|
@ -267,6 +267,7 @@ en-MEEP:
|
|||
resources:
|
||||
jn_items: JN Meepits
|
||||
shop_wizard: Meep Wizard
|
||||
super_shop_wizard: Meeper Wizard
|
||||
trading_post: Treeps
|
||||
auction_genie: Aucteeps
|
||||
closet_hangers:
|
||||
|
|
|
@ -311,6 +311,7 @@ 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:
|
||||
|
|
|
@ -211,6 +211,7 @@ 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:
|
||||
|
|
|
@ -209,6 +209,7 @@ 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:
|
||||
|
|
Loading…
Reference in a new issue