mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-27 00:33:17 +00:00
Merge pull request #437 from pixelfed/frontend-ui-refactor
Fix missing menu on mobile
This commit is contained in:
commit
43288dacd7
2 changed files with 78 additions and 0 deletions
|
@ -14,6 +14,45 @@
|
||||||
<span class="username-link font-weight-bold text-dark">{{$user->username}}</span>
|
<span class="username-link font-weight-bold text-dark">{{$user->username}}</span>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
<div class="float-right">
|
||||||
|
<div class="dropdown">
|
||||||
|
<button class="btn btn-link text-dark no-caret dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" title="Post options">
|
||||||
|
<span class="fas fa-ellipsis-v text-muted"></span>
|
||||||
|
</button>
|
||||||
|
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
|
||||||
|
<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
|
||||||
|
<input type="hidden" name="type" value="post">
|
||||||
|
<input type="hidden" name="item" value="{{$status->id}}">
|
||||||
|
<button type="submit" class="dropdown-item btn btn-link font-weight-bold">Delete</button>
|
||||||
|
</form>
|
||||||
|
@endif
|
||||||
|
@endif
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12 col-md-8 status-photo px-0">
|
<div class="col-12 col-md-8 status-photo px-0">
|
||||||
@if($status->is_nsfw)
|
@if($status->is_nsfw)
|
||||||
|
|
|
@ -14,6 +14,45 @@
|
||||||
<span class="username-link font-weight-bold text-dark">{{$user->username}}</span>
|
<span class="username-link font-weight-bold text-dark">{{$user->username}}</span>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
<div class="float-right">
|
||||||
|
<div class="dropdown">
|
||||||
|
<button class="btn btn-link text-dark no-caret dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" title="Post options">
|
||||||
|
<span class="fas fa-ellipsis-v text-muted"></span>
|
||||||
|
</button>
|
||||||
|
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
|
||||||
|
<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
|
||||||
|
<input type="hidden" name="type" value="post">
|
||||||
|
<input type="hidden" name="item" value="{{$status->id}}">
|
||||||
|
<button type="submit" class="dropdown-item btn btn-link font-weight-bold">Delete</button>
|
||||||
|
</form>
|
||||||
|
@endif
|
||||||
|
@endif
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12 col-md-8 status-photo px-0">
|
<div class="col-12 col-md-8 status-photo px-0">
|
||||||
@if($status->is_nsfw && $status->media_count == 1)
|
@if($status->is_nsfw && $status->media_count == 1)
|
||||||
|
|
Loading…
Reference in a new issue