Skip to content

Commit

Permalink
also show different tiers of sigils (followup on 2328751, #34)
Browse files Browse the repository at this point in the history
  • Loading branch information
darthmaim committed Oct 29, 2015
1 parent 2328751 commit dff0212
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/item/details.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@
</script>
</div>

@if( $item->type == 'UpgradeComponent' && $item->subtype == 'Rune' &&
@if( $item->type == 'UpgradeComponent' && in_array($item->subtype, ['Rune', 'Sigil']) &&
count( $tiers = Item::whereType($item->type)->whereSubtype($item->subtype)->wherePvp(false)
->where('name_en', 'LIKE', DB::raw('"%'.$item->getTypeData('en')->suffix.'"'))
->orderBy('level', 'ASC')->orderBy('value', 'ASC')->get() ) > 1
)
<h3>{{ trans('item.tiers') }}</h3>
<ul class="itemList itemList">
<ul class="itemList itemList--singleColumn">
@foreach( $tiers as $tierItem )
@if( $tierItem->id === $item->id )
<li style="font-weight: bold;">{{ $tierItem->link(32) }}</li>
Expand Down

0 comments on commit dff0212

Please sign in to comment.