mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-03-31 20:00:22 +02:00
Update edit-user.blade.php
This commit is contained in:
parent
6ad987954c
commit
e4fb49195b
@ -57,7 +57,7 @@
|
||||
</div>
|
||||
<div class="form-group col-lg-8">
|
||||
@if(!file_exists(base_path('assets/img/background-img/'.findBackground($user->id))))<p><i>No image selected</i></p>@endif
|
||||
<img style="width:95%;max-width:400px;argin-left:1rem!important;border-radius:5px;" src="@if(file_exists(base_path('assets/img/background-img/'.findBackground($user->id)))){{url('/img/background-img/'.findBackground($user->id))}}@else{{url('/assets/linkstack/images/themes/no-preview.png')}}@endif">
|
||||
<img style="width:95%;max-width:400px;argin-left:1rem!important;border-radius:5px;" src="@if(file_exists(base_path('assets/img/background-img/'.findBackground($user->id)))){{url('assets/img/background-img/'.findBackground($user->id))}}@else{{url('/assets/linkstack/images/themes/no-preview.png')}}@endif">
|
||||
@if(file_exists(base_path('assets/img/background-img/'.findBackground($user->id))))<br><a title="Remove icon" class="hvr-grow p-1 text-danger" style="padding-left:5px;" href="?deleteB"><i class="bi bi-trash-fill"></i> Delete</a>@endif
|
||||
@if($_SERVER['QUERY_STRING'] === 'deleteB' and File::exists(base_path('assets/img/background-img/'.findBackground($user->id))))@php File::delete(base_path('assets/img/background-img/'.findBackground($user->id))); header("Location: ".url()->current()); die(); @endphp @endif
|
||||
<br>
|
||||
|
Loading…
x
Reference in New Issue
Block a user