mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Add user muted privacy settings
This commit is contained in:
parent
cdc6a71c14
commit
c9e75b1e63
1 changed files with 39 additions and 0 deletions
39
resources/views/settings/privacy/muted.blade.php
Normal file
39
resources/views/settings/privacy/muted.blade.php
Normal file
|
@ -0,0 +1,39 @@
|
|||
@extends('settings.template')
|
||||
|
||||
@section('section')
|
||||
|
||||
<div class="title">
|
||||
<h3 class="font-weight-bold">Muted Users</h3>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="form-group pb-1">
|
||||
<p>
|
||||
<a class="btn btn-outline-primary py-0 font-weight-bold" href="{{route('settings.privacy.muted-users')}}">Muted Users</a>
|
||||
<a class="btn btn-outline-secondary py-0 font-weight-bold" href="{{route('settings.privacy.blocked-users')}}">Blocked Users</a>
|
||||
</p>
|
||||
</div>
|
||||
@if($users->count() > 0)
|
||||
<ul class="list-group list-group-flush">
|
||||
@foreach($users as $user)
|
||||
<li class="list-group-item">
|
||||
<div class="d-flex justify-content-between align-items-center font-weight-bold">
|
||||
<span><img class="rounded-circle mr-3" src="{{$user->avatarUrl()}}" width="32px">{{$user->emailUrl()}}</span>
|
||||
<span class="btn-group">
|
||||
<form method="post">
|
||||
@csrf
|
||||
<input type="hidden" name="profile_id" value="{{$user->id}}">
|
||||
<button type="submit" class="btn btn-outline-secondary btn-sm px-3 font-weight-bold">Unmute</button>
|
||||
</form>
|
||||
</span>
|
||||
</div>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
<div class="d-flex justify-content-center mt-3 font-weight-bold">
|
||||
{{$users->links()}}
|
||||
</div>
|
||||
@else
|
||||
<p class="lead">You are not muting any accounts.</p>
|
||||
@endif
|
||||
|
||||
@endsection
|
Loading…
Reference in a new issue