mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-23 06:51:27 +00:00
Merge pull request #438 from pixelfed/frontend-ui-refactor
Frontend ui refactor
This commit is contained in:
commit
3eedcefdbc
2 changed files with 32 additions and 15 deletions
|
@ -29,6 +29,7 @@ class ProfileController extends Controller
|
|||
$username = $user->username;
|
||||
$loggedIn = Auth::check();
|
||||
$isPrivate = false;
|
||||
$isBlocked = false;
|
||||
|
||||
if ($user->remote_url) {
|
||||
$settings = new \StdClass;
|
||||
|
|
|
@ -17,7 +17,23 @@
|
|||
<a class="dropdown-item font-weight-bold" href="{{$status->reportUrl()}}">Report</a>
|
||||
{{-- <a class="dropdown-item" href="#">Embed</a> --}}
|
||||
@if(Auth::check())
|
||||
@if(Auth::user()->profile->id !== $status->profile->id)
|
||||
<div class="dropdown-divider"></div>
|
||||
<form method="post" action="/i/mute">
|
||||
@csrf
|
||||
<input type="hidden" name="type" value="user">
|
||||
<input type="hidden" name="item" value="{{$status->profile_id}}">
|
||||
<button type="submit" class="dropdown-item btn btn-link font-weight-bold">Mute this user</button>
|
||||
</form>
|
||||
<form method="post" action="/i/block">
|
||||
@csrf
|
||||
<input type="hidden" name="type" value="user">
|
||||
<input type="hidden" name="item" value="{{$status->profile_id}}">
|
||||
<button type="submit" class="dropdown-item btn btn-link font-weight-bold">Block this user</button>
|
||||
</form>
|
||||
@endif
|
||||
@if(Auth::user()->profile->id === $status->profile->id || Auth::user()->is_admin == true)
|
||||
<div class="dropdown-divider"></div>
|
||||
{{-- <a class="dropdown-item" href="{{$status->editUrl()}}">Edit</a> --}}
|
||||
<form method="post" action="/i/delete">
|
||||
@csrf
|
||||
|
|
Loading…
Reference in a new issue