1
0
Fork 0
forked from OpenNeo/impress

Remove extra item zones section from item page

This is in the previewer UI now, we can remove this extra one!
This commit is contained in:
Emi Matchu 2024-01-20 23:59:08 -08:00
parent b1c1bea7be
commit 80e158caf7
4 changed files with 0 additions and 34 deletions

View file

@ -47,18 +47,6 @@ body.items-show
#item-info
grid-area: info
#item-zones
font:
family: $text-font
size: 85%
margin-bottom: 1em
p
display: inline
&:first-child
margin-right: 1em
#your-items-form
grid-area: form

View file

@ -58,13 +58,6 @@ class ItemsController < ApplicationController
respond_to do |format|
format.html do
@occupied_zones = @item.occupied_zones(
scope: Zone.includes_translations.alphabetical
)
@restricted_zones = @item.restricted_zones(
scope: Zone.includes_translations.alphabetical
)
@contributors_with_counts = @item.contributors_with_counts
trading_closet_hangers = @item.closet_hangers.trading.includes(:user).

View file

@ -50,10 +50,6 @@ module ItemsHelper
content_tag :div, content, :class => 'closeted-icons'
end
def list_zones(zones, method=:label)
zones.map(&method).join(', ')
end
def nc_icon
image_tag 'nc.png', :title => t('items.item.nc.description'),
:alt => t('items.item.nc.abbr'), :class => 'nc-icon'

View file

@ -23,17 +23,6 @@
#item-info
%p= @item.description
#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
#trade-hangers
- if Time.now < Date.new(2024, 1, 26)
%p