Oh right, PB is another kind of item!
This commit is contained in:
parent
31468c9682
commit
abe2747b93
2 changed files with 9 additions and 4 deletions
|
@ -36,7 +36,7 @@
|
||||||
align-items: center
|
align-items: center
|
||||||
gap: 1em
|
gap: 1em
|
||||||
|
|
||||||
.nc-or-np
|
.item-kind
|
||||||
padding: .25em .5em
|
padding: .25em .5em
|
||||||
border-radius: .25em
|
border-radius: .25em
|
||||||
cursor: help
|
cursor: help
|
||||||
|
@ -50,7 +50,9 @@
|
||||||
&[data-type=nc]
|
&[data-type=nc]
|
||||||
background: #E9D8FD
|
background: #E9D8FD
|
||||||
color: #44337A
|
color: #44337A
|
||||||
|
&[data-type=pb]
|
||||||
|
background: #FEEBC8
|
||||||
|
color: #7B341E
|
||||||
&[data-type=np]
|
&[data-type=np]
|
||||||
background: #E2E8F0
|
background: #E2E8F0
|
||||||
color: #1A202C
|
color: #1A202C
|
||||||
|
|
|
@ -8,10 +8,13 @@
|
||||||
%h2.item-name= item.name
|
%h2.item-name= item.name
|
||||||
%nav.item-links
|
%nav.item-links
|
||||||
- if item.nc?
|
- if item.nc?
|
||||||
.nc-or-np{'data-type' => 'nc', title: 'Purchaseable with Neocash'}
|
.item-kind{'data-type' => 'nc', title: 'Purchaseable with Neocash'}
|
||||||
NC
|
NC
|
||||||
|
- elsif item.pb?
|
||||||
|
.item-kind{'data-type' => 'pb', title: 'Only obtainable via paintbrush'}
|
||||||
|
PB
|
||||||
- else
|
- else
|
||||||
.nc-or-np{'data-type' => 'np', title: 'Purchaseable with Neopoints'}
|
.item-kind{'data-type' => 'np', title: 'Purchaseable with Neopoints'}
|
||||||
NP
|
NP
|
||||||
|
|
||||||
= link_to t('items.show.resources.jn_items'), jn_items_url_for(item)
|
= link_to t('items.show.resources.jn_items'), jn_items_url_for(item)
|
||||||
|
|
Loading…
Reference in a new issue