forked from OpenNeo/impress
stop caching items#show for now due to Your Items module
This commit is contained in:
parent
be5bdb1eec
commit
8bf9872fbe
1 changed files with 80 additions and 81 deletions
|
@ -1,8 +1,7 @@
|
||||||
- title @item.name
|
- title @item.name
|
||||||
- canonical_path @item
|
- canonical_path @item
|
||||||
|
|
||||||
- cache "items_show_#{@item.id}_main_content" do
|
%header#item-header
|
||||||
%header#item-header
|
|
||||||
= image_tag @item.thumbnail_url, :id => 'item-thumbnail'
|
= image_tag @item.thumbnail_url, :id => 'item-thumbnail'
|
||||||
%div
|
%div
|
||||||
%h2#item-name= @item.name
|
%h2#item-name= @item.name
|
||||||
|
@ -11,7 +10,7 @@
|
||||||
== Rarity: #{@item.rarity_index} (#{@item.rarity})
|
== Rarity: #{@item.rarity_index} (#{@item.rarity})
|
||||||
= link_to 'NeoItems', neoitems_url_for(@item), :class => 'button'
|
= link_to 'NeoItems', neoitems_url_for(@item), :class => 'button'
|
||||||
|
|
||||||
- if @current_user_hangers
|
- if @current_user_hangers
|
||||||
#closet-hangers
|
#closet-hangers
|
||||||
%header
|
%header
|
||||||
Track this in
|
Track this in
|
||||||
|
@ -30,9 +29,9 @@
|
||||||
- unless lists.empty?
|
- unless lists.empty?
|
||||||
= f.collection_select :list_id, lists, :id, :name, :include_blank => 'Not in a list'
|
= f.collection_select :list_id, lists, :id, :name, :include_blank => 'Not in a list'
|
||||||
= f.submit "Save"
|
= f.submit "Save"
|
||||||
%p= @item.description
|
%p= @item.description
|
||||||
|
|
||||||
#item-zones
|
#item-zones
|
||||||
%p
|
%p
|
||||||
%strong Occupies:
|
%strong Occupies:
|
||||||
= list_zones @item.occupied_zones, :uncertain_label
|
= list_zones @item.occupied_zones, :uncertain_label
|
||||||
|
@ -43,7 +42,7 @@
|
||||||
- else
|
- else
|
||||||
= list_zones @item.restricted_zones
|
= list_zones @item.restricted_zones
|
||||||
|
|
||||||
#trade-hangers
|
#trade-hangers
|
||||||
- [true, false].each do |owned|
|
- [true, false].each do |owned|
|
||||||
%p
|
%p
|
||||||
- unless @trading_closet_hangers_by_owned[owned].empty?
|
- unless @trading_closet_hangers_by_owned[owned].empty?
|
||||||
|
@ -74,20 +73,20 @@
|
||||||
%span.less less
|
%span.less less
|
||||||
|
|
||||||
|
|
||||||
#item-preview-header
|
#item-preview-header
|
||||||
%h3 Preview
|
%h3 Preview
|
||||||
%a#customize-more.button{:href => '/'} Customize more
|
%a#customize-more.button{:href => '/'} Customize more
|
||||||
|
|
||||||
#item-preview
|
#item-preview
|
||||||
#item-preview-species= standard_species_images_for(@item)
|
#item-preview-species= standard_species_images_for(@item)
|
||||||
#item-preview-error
|
#item-preview-error
|
||||||
#item-preview-swf
|
#item-preview-swf
|
||||||
Javascript and Flash are required to preview wearables. Sorry!
|
Javascript and Flash are required to preview wearables. Sorry!
|
||||||
|
|
||||||
:javascript
|
:javascript
|
||||||
var CURRENT_ITEM_ZONES_RESTRICT = #{@item.zones_restrict.inspect},
|
var CURRENT_ITEM_ZONES_RESTRICT = #{@item.zones_restrict.inspect},
|
||||||
IMPRESS_HOST = #{RemoteImpressHost.inspect};
|
IMPRESS_HOST = #{RemoteImpressHost.inspect};
|
||||||
|
|
||||||
= include_javascript_libraries :jquery, :swfobject
|
= include_javascript_libraries :jquery, :swfobject
|
||||||
= javascript_include_tag 'items/show'
|
= javascript_include_tag 'items/show'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue