Skip to content

Commit

Permalink
Show team flag on user search page
Browse files Browse the repository at this point in the history
  • Loading branch information
nanaya committed Jan 17, 2025
1 parent d9f4860 commit 993d5df
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions resources/views/home/_search_result_user.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@
Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the GNU Affero General Public License v3.0.
See the LICENCE file in the repository root for full licence text.
--}}
@php
use App\Transformers\UserCompactTransformer;
@endphp
<div class="js-react--user-cards"
data-modifiers="{{ json_encode(['search']) }}"
data-users="{{ json_encode(json_collection($search->data(), 'UserCompact', ['cover', 'country', 'groups'])) }}">
</div>
data-modifiers="{{ json_encode(['search']) }}"
data-users="{{ json_encode(json_collection(
$search->data(),
new UserCompactTransformer(),
UserCompactTransformer::CARD_INCLUDES,
)) }}"
></div>

0 comments on commit 993d5df

Please sign in to comment.