1{{--
2 Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
3 See the LICENCE file in the repository root for full licence text.
4--}}
5@php
6 $bn = 'show-more-link';
7
8 $blockClass = class_with_modifiers($bn, $modifiers ?? []);
9
10 if ($hidden ?? false) {
11 $blockClass .= ' hidden';
12 }
13
14 if (isset($additionalClasses)) {
15 $blockClass .= " {$additionalClasses}";
16 }
17
18 $arrow ?? ($arrow = 'down');
19@endphp
20<a
21 href="{{ $url }}"
22 class="{{ $blockClass }}"
23 @foreach ($attributes as $key => $value)
24 {{ $key }}="{{ $value }}"
25 @endforeach
26>
27 <span class="{{ $bn }}__spinner">
28 {!! spinner() !!}
29 </span>
30 <span class="{{ $bn }}__label">
31 <span class="{{ $bn }}__label-icon">
32 <span class="fas fa-angle-{{ $arrow }}"></span>
33 </span>
34 <span class="{{ $bn }}__label-text">
35 {{ osu_trans('common.buttons.show_more') }}
36 </span>
37 <span class="{{ $bn }}__label-icon">
38 <span class="fas fa-angle-{{ $arrow }}"></span>
39 </span>
40 </span>
41</a>