1
0
Fork 0
forked from OpenNeo/impress
impress/app/views/items/show.html.haml

36 lines
951 B
Text
Raw Normal View History

2010-12-05 18:18:52 -08:00
- javascript_chain :jquery, :swfobject, 'items/show'
2010-05-15 17:46:41 -07:00
%header
= image_tag @item.thumbnail_url, :id => 'item-thumbnail'
2010-09-08 19:49:39 -07:00
%div
%h2#item-name= @item.name
= nc_icon_for(@item)
2010-11-27 15:41:06 -08:00
- unless @item.rarity.blank?
2010-09-08 19:49:39 -07:00
== Rarity: #{@item.rarity_index} (#{@item.rarity})
%a.button{:href => neoitems_url_for(@item)} NeoItems
2010-05-15 17:49:13 -07:00
%p= @item.description
2010-09-08 19:49:39 -07:00
#item-zones
%p
%strong Occupies:
= list_zones @item.occupied_zones, :uncertain_label
%p
%strong Restricts:
- if @item.restricted_zones.empty?
None
- else
= list_zones @item.restricted_zones
#item-preview-header
%h3 Preview
%a#customize-more.button{:href => '/'} Customize more
#item-preview
#item-preview-species= standard_species_images(@item.supported_species)
#item-preview-error
#item-preview-swf
Javascript and Flash are required to preview wearables. Sorry!
2010-06-07 16:50:49 -07:00
:javascript
2010-12-05 18:18:52 -08:00
var CURRENT_ITEM_ZONES_RESTRICT = #{@item.zones_restrict.inspect};