Oh right, PB is another kind of item!

This commit is contained in:
Emi Matchu 2024-01-21 05:23:53 -08:00
parent 31468c9682
commit abe2747b93
2 changed files with 9 additions and 4 deletions

View file

@ -36,7 +36,7 @@
align-items: center
gap: 1em
.nc-or-np
.item-kind
padding: .25em .5em
border-radius: .25em
cursor: help
@ -50,7 +50,9 @@
&[data-type=nc]
background: #E9D8FD
color: #44337A
&[data-type=pb]
background: #FEEBC8
color: #7B341E
&[data-type=np]
background: #E2E8F0
color: #1A202C

View file

@ -8,10 +8,13 @@
%h2.item-name= item.name
%nav.item-links
- if item.nc?
.nc-or-np{'data-type' => 'nc', title: 'Purchaseable with Neocash'}
.item-kind{'data-type' => 'nc', title: 'Purchaseable with Neocash'}
NC
- elsif item.pb?
.item-kind{'data-type' => 'pb', title: 'Only obtainable via paintbrush'}
PB
- else
.nc-or-np{'data-type' => 'np', title: 'Purchaseable with Neopoints'}
.item-kind{'data-type' => 'np', title: 'Purchaseable with Neopoints'}
NP
= link_to t('items.show.resources.jn_items'), jn_items_url_for(item)