2011-05-13 05:07:59 -07:00
|
|
|
- title @item.name
|
2011-07-26 15:56:14 -07:00
|
|
|
- canonical_path @item
|
2011-05-20 16:29:04 -07:00
|
|
|
|
2023-08-02 11:38:10 -07:00
|
|
|
%header#item-header
|
|
|
|
= image_tag @item.thumbnail.secure_url, :id => 'item-thumbnail'
|
|
|
|
%div
|
|
|
|
%h2#item-name= @item.name
|
|
|
|
= nc_icon_for(@item)
|
|
|
|
- unless @item.rarity.blank?
|
|
|
|
== #{t '.rarity'}: #{@item.rarity_index} (#{@item.rarity})
|
|
|
|
= link_to t('.resources.jn_items'), jn_items_url_for(@item)
|
2023-11-03 16:20:02 -07:00
|
|
|
- if @item.nc_trade_value
|
|
|
|
= link_to t('.resources.owls', value: @item.nc_trade_value.value_text),
|
|
|
|
"https://www.neopets.com/~owls",
|
|
|
|
title: nc_trade_value_updated_at_text(@item.nc_trade_value)
|
2023-08-02 11:38:10 -07:00
|
|
|
- unless @item.nc?
|
|
|
|
= link_to t('.resources.shop_wizard'), shop_wizard_url_for(@item)
|
|
|
|
= link_to t('.resources.super_shop_wizard'), super_shop_wizard_url_for(@item)
|
|
|
|
= link_to t('.resources.trading_post'), trading_post_url_for(@item)
|
|
|
|
= link_to t('.resources.auction_genie'), auction_genie_url_for(@item)
|
2011-07-14 09:50:24 -07:00
|
|
|
|
2011-10-10 19:43:46 -07:00
|
|
|
- if user_signed_in?
|
2011-08-01 21:12:44 -07:00
|
|
|
#closet-hangers
|
2011-10-10 19:43:46 -07:00
|
|
|
%h3
|
2013-01-09 16:05:06 -08:00
|
|
|
= t '.closet_hangers.header_html',
|
2012-12-30 11:15:55 -08:00
|
|
|
:user_items_link => link_to(t('your_items'),
|
|
|
|
user_closet_hangers_path(current_user))
|
2011-10-10 19:43:46 -07:00
|
|
|
= form_tag update_quantities_user_item_closet_hangers_path(:user_id => current_user, :item_id => @item), :method => :put do
|
|
|
|
#closet-hangers-ownership-groups
|
|
|
|
- @current_user_lists.each do |owned, lists|
|
|
|
|
%div
|
2012-12-30 11:15:55 -08:00
|
|
|
%h4= closet_lists_group_name(:you, owned)
|
2011-10-10 19:43:46 -07:00
|
|
|
%ul
|
|
|
|
- lists.each do |list|
|
|
|
|
%li
|
|
|
|
= number_field_tag "quantity[#{list.id}]",
|
|
|
|
@current_user_quantities[list.id], :min => 0
|
|
|
|
= label_tag "quantity[#{list.id}]", list.name
|
|
|
|
|
|
|
|
%li
|
|
|
|
= number_field_tag "quantity[#{owned}]",
|
2012-08-09 21:02:11 -07:00
|
|
|
@current_user_quantities[owned], :min => 0
|
2011-10-10 19:43:46 -07:00
|
|
|
|
|
|
|
- unless lists.empty?
|
2012-12-30 11:15:55 -08:00
|
|
|
= label_tag "quantity[#{owned}]",
|
|
|
|
t('closet_lists.unlisted_name'),
|
|
|
|
:class => 'unlisted'
|
2011-10-10 19:43:46 -07:00
|
|
|
- else
|
2013-01-09 16:05:06 -08:00
|
|
|
= label_tag "quantity[#{owned}]",
|
|
|
|
t('.closet_hangers.quantity_label')
|
|
|
|
= submit_tag t('.closet_hangers.submit')
|
2011-05-20 17:23:37 -07:00
|
|
|
|
2023-08-02 11:38:10 -07:00
|
|
|
%p= @item.description
|
2012-08-09 21:02:11 -07:00
|
|
|
|
2023-08-02 11:38:10 -07:00
|
|
|
#item-zones
|
|
|
|
%p
|
|
|
|
%strong #{t '.zones.occupied_header'}:
|
|
|
|
= list_zones @occupied_zones, :uncertain_label
|
|
|
|
%p
|
|
|
|
%strong #{t '.zones.restricted_header'}:
|
|
|
|
- if @restricted_zones.empty?
|
|
|
|
= t '.zones.none'
|
|
|
|
- else
|
|
|
|
= list_zones @restricted_zones
|
2011-05-20 17:23:37 -07:00
|
|
|
|
2023-08-02 12:25:57 -07:00
|
|
|
#trade-hangers
|
|
|
|
- [true, false].each do |owned|
|
|
|
|
%p
|
|
|
|
%strong
|
|
|
|
= trading_closet_hangers_header(owned, @trading_closet_hangers_by_owned[owned].size)
|
|
|
|
= render_trading_closet_hangers(owned)
|
|
|
|
%span.toggle
|
|
|
|
%span.more= t '.trading_closet_hangers.show_more'
|
|
|
|
%span.less= t '.trading_closet_hangers.show_less'
|
2011-07-30 21:19:28 -07:00
|
|
|
|
2023-08-10 19:58:22 -07:00
|
|
|
#outfit-preview-root{'data-item-id': @item.id}
|
2011-05-20 17:23:37 -07:00
|
|
|
|
2023-08-02 12:10:38 -07:00
|
|
|
- unless @contributors_with_counts.empty?
|
|
|
|
#item-contributors
|
|
|
|
%header #{t '.contributors.header'}:
|
|
|
|
%ul
|
|
|
|
- @contributors_with_counts.each do |contributor, count|
|
|
|
|
%li= link_to(contributor.name, user_contributions_path(contributor)) + format_contribution_count(count)
|
|
|
|
%footer= t '.contributors.footer'
|
2012-10-24 20:16:01 -07:00
|
|
|
|
2012-12-30 11:15:55 -08:00
|
|
|
- content_for :javascripts do
|
2023-08-10 19:58:22 -07:00
|
|
|
= javascript_include_tag 'item-page', defer: true
|
2011-05-02 15:07:56 -07:00
|
|
|
|