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:
parent
b1c1bea7be
commit
80e158caf7
4 changed files with 0 additions and 34 deletions
|
@ -47,18 +47,6 @@ body.items-show
|
||||||
#item-info
|
#item-info
|
||||||
grid-area: 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
|
#your-items-form
|
||||||
grid-area: form
|
grid-area: form
|
||||||
|
|
||||||
|
|
|
@ -58,13 +58,6 @@ class ItemsController < ApplicationController
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html do
|
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
|
@contributors_with_counts = @item.contributors_with_counts
|
||||||
|
|
||||||
trading_closet_hangers = @item.closet_hangers.trading.includes(:user).
|
trading_closet_hangers = @item.closet_hangers.trading.includes(:user).
|
||||||
|
|
|
@ -50,10 +50,6 @@ module ItemsHelper
|
||||||
content_tag :div, content, :class => 'closeted-icons'
|
content_tag :div, content, :class => 'closeted-icons'
|
||||||
end
|
end
|
||||||
|
|
||||||
def list_zones(zones, method=:label)
|
|
||||||
zones.map(&method).join(', ')
|
|
||||||
end
|
|
||||||
|
|
||||||
def nc_icon
|
def nc_icon
|
||||||
image_tag 'nc.png', :title => t('items.item.nc.description'),
|
image_tag 'nc.png', :title => t('items.item.nc.description'),
|
||||||
:alt => t('items.item.nc.abbr'), :class => 'nc-icon'
|
:alt => t('items.item.nc.abbr'), :class => 'nc-icon'
|
||||||
|
|
|
@ -23,17 +23,6 @@
|
||||||
#item-info
|
#item-info
|
||||||
%p= @item.description
|
%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
|
#trade-hangers
|
||||||
- if Time.now < Date.new(2024, 1, 26)
|
- if Time.now < Date.new(2024, 1, 26)
|
||||||
%p
|
%p
|
||||||
|
|
Loading…
Reference in a new issue