Skip to content

Commit 2fddfec

Browse files
committed
Tweaks
1 parent 62543d6 commit 2fddfec

File tree

4 files changed

+16
-9
lines changed

4 files changed

+16
-9
lines changed

resources/views/cruds/permissions/permissions_table.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@
6161
<div class="w-40 col-span-2 md:col-span-1">
6262
@can('update', $role)
6363
<a href="{{ route('campaign_roles.edit', [$campaign, $role]) }}">
64-
{{ $role->name }}
64+
{!! $role->name !!}
6565
</a>
6666
@if ($role->isPublic() && !$campaign->isPublic())
6767
<x-icon class="fa-solid fa-exclamation-triangle" tooltip :title="__('campaigns.roles.permissions.helpers.not_public')" />
6868
@endif
6969
@else
70-
{{ $role->name }}
70+
{!! $role->name !!}
7171
@endcan
7272
</div>
7373
<div class="">

resources/views/entities/components/header.blade.php

-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@
188188
<span class="sr-only">{{ __('entities/permissions.quick.screen-reader') }}</span>
189189
</span>
190190
@endif
191-
@include('entities.headers.cog')
192191
</div>
193192

194193
@if ($entity->isCharacter()&& !empty($entity->child->title))

resources/views/entities/pages/privacy/_body.blade.php

+13-5
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,24 @@
1111
</select>
1212
</x-forms.field>
1313

14-
<hr class="m-0" />
14+
<hr />
1515

16-
<p class="font-extrabold m-0">
16+
<div class="flex flex-col gap-1">
17+
<p class="">
1718
{{ __('entities/permissions.quick.viewable-by') }}
1819
</p>
1920
@if (!empty($visibility['roles']) || !empty($visibility['users']))
2021
<div class="@if ($entity->is_private) line-through text-slate-400 @endif flex flex-wrap gap-2 items-center ">
2122
@foreach ($visibility['roles'] as $role)
2223
<span>
23-
<x-icon class="fa-solid fa-user-group" />
24-
{!! $role->name !!}
24+
<x-icon class="fa-regular fa-user-group" />
25+
@can('update', $role)
26+
<a href="{{ route('campaign_roles.edit', [$campaign, $role]) }}">
27+
{!! $role->name !!}
28+
</a>
29+
@else
30+
{!! $role->name !!}
31+
@endif
2532
@if ($role->isPublic() && !$campaign->isPublic())
2633
<x-icon class="fa-solid fa-exclamation-triangle text-accent" tooltip :title="__('campaigns.roles.permissions.helpers.not_public')" />
2734
@endif
@@ -30,7 +37,7 @@
3037
@foreach ($visibility['users'] as $user)
3138
<div class="flex gap-1 items-center">
3239
@if ($user->hasAvatar())
33-
<div class="avatar cover-background w-4 h-4 rounded-full" style="background-image: url('{!! $user->getAvatarUrl() !!}')"></div>
40+
<div class="avatar cover-background w-5 h-5 rounded-full" style="background-image: url('{!! $user->getAvatarUrl() !!}')"></div>
3441
@else
3542
<x-icon class="fa-solid fa-user" />
3643
@endif
@@ -43,4 +50,5 @@
4350
{{ __('entities/permissions.quick.empty-permissions') }}
4451
</p>
4552
@endif
53+
</div>
4654
</x-grid>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<button class="btn2 btn-primary" data-target="primary-dialog" data-url="{{ route('entities.permissions', [$campaign, $entity]) }}" data-toggle="dialog">
1+
<button class="btn2" data-target="primary-dialog" data-url="{{ route('entities.permissions', [$campaign, $entity]) }}" data-toggle="dialog">
22
<x-icon class="fa-solid fa-wrench" />
33
{{ __('entities/permissions.quick.manage') }}
44
</button>

0 commit comments

Comments
 (0)