Skip to content

Commit

Permalink
Update settings home view, fixes #1914
Browse files Browse the repository at this point in the history
  • Loading branch information
dansup committed Jan 11, 2020
1 parent aba509f commit 0307be5
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions resources/views/settings/home.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,6 @@
<input type="text" class="form-control" id="name" name="name" placeholder="Your Name" value="{{Auth::user()->profile->name}}">
</div>
</div>
<div class="form-group row">
<label for="username" class="col-sm-3 col-form-label font-weight-bold">Username</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="username" name="username" placeholder="Username" value="{{Auth::user()->profile->username}}" readonly>
</div>
</div>
<div class="form-group row">
<label for="website" class="col-sm-3 col-form-label font-weight-bold">Website</label>
<div class="col-sm-9">
Expand All @@ -68,11 +62,12 @@
<div class="col-sm-9">
<select class="form-control" name="language">
@foreach(App\Util\Localization\Localization::languages() as $lang)
<option value="{{$lang}}" {{Auth::user()->language == $lang ? 'selected':''}}>{{locale_get_display_language($lang, 'en')}} - {{locale_get_display_language($lang, $lang)}}</option>
<option value="{{$lang}}" {{Auth::user()->language ?? 'en' == $lang ? 'selected':''}}>{{locale_get_display_language($lang, 'en')}} - {{locale_get_display_language($lang, $lang)}}</option>
@endforeach
</select>
</div>
</div>
@if(config('pixelfed.enforce_account_limit'))
<div class="pt-3">
<p class="font-weight-bold text-muted text-center">Storage Usage</p>
</div>
Expand All @@ -92,6 +87,7 @@
</div>
</div>
</div>
@endif
<hr>
<div class="form-group row">
<div class="col-12 text-right">
Expand Down

0 comments on commit 0307be5

Please sign in to comment.