mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +00:00
Update Settings view, add account delete link
This commit is contained in:
parent
3c5cdf9e31
commit
41ad06fc7e
1 changed files with 16 additions and 3 deletions
|
@ -106,21 +106,34 @@
|
|||
<div class="col-sm-9">
|
||||
<div class="custom-control custom-radio custom-control-inline">
|
||||
<input type="radio" id="profileLayout1" name="profile_layout" class="custom-control-input" {{Auth::user()->profile->profile_layout != 'moment' ? 'checked':''}} value="metro">
|
||||
<label class="custom-control-label" for="profileLayout1">Metro</label>
|
||||
<label class="custom-control-label" for="profileLayout1">MetroUI</label>
|
||||
</div>
|
||||
<div class="custom-control custom-radio custom-control-inline">
|
||||
<input type="radio" id="profileLayout2" name="profile_layout" class="custom-control-input" {{Auth::user()->profile->profile_layout == 'moment' ? 'checked':''}} value="moment">
|
||||
<label class="custom-control-label" for="profileLayout2">Moment</label>
|
||||
<label class="custom-control-label" for="profileLayout2">MomentUI</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
@if(config('pixelfed.account_deletion') == true)
|
||||
<div class="form-group row py-3">
|
||||
<div class="col-12 d-flex align-items-center justify-content-between">
|
||||
<a class="font-weight-bold" href="{{route('settings.remove.temporary')}}">Temporarily Disable Account</a>
|
||||
<button type="submit" class="btn btn-primary font-weight-bold float-right">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<p class="mb-0 text-center pt-4">
|
||||
<a class="font-weight-bold text-danger" href="{{route('settings.remove.permanent')}}">Delete Account</a>
|
||||
</p>
|
||||
@else
|
||||
<div class="form-group row">
|
||||
<div class="col-12 d-flex align-items-center justify-content-between">
|
||||
<a class="font-weight-bold" href="{{route('settings.remove.temporary')}}">Temporarily Disable Account</a>
|
||||
<button type="submit" class="btn btn-primary font-weight-bold float-right">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
|
@ -168,7 +181,7 @@ $(document).ready(function() {
|
|||
$(document).on('click', '.modal-close', function(e) {
|
||||
swal.close();
|
||||
});
|
||||
|
||||
|
||||
$('#maxAvatarSize').text(filesize({{config('pixelfed.max_avatar_size') * 1024}}, {round: 0}));
|
||||
|
||||
$('#avatarInput').on('change', function(e) {
|
||||
|
|
Loading…
Reference in a new issue