Merge pull request #1413 from pixelfed/frontend-ui-refactor

Closes #1412
This commit is contained in:
daniel 2019-06-17 13:02:53 -06:00 committed by GitHub
commit 7d5a6a8b41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 28 additions and 18 deletions

View File

@ -6,9 +6,12 @@
<h3 class="font-weight-bold">Applications</h3>
</div>
<hr>
@if(config('pixelfed.oauth_enabled') == true)
<passport-authorized-clients></passport-authorized-clients>
<passport-personal-access-tokens></passport-personal-access-tokens>
@else
<p class="lead">OAuth has not been enabled on this instance.</p>
@endif
@endsection
@push('scripts')

View File

@ -6,7 +6,11 @@
<h3 class="font-weight-bold">Developers</h3>
</div>
<hr>
@if(config('pixelfed.oauth_enabled') == true)
<passport-clients></passport-clients>
@else
<p class="lead">OAuth has not been enabled on this instance.</p>
@endif
@endsection

View File

@ -43,6 +43,7 @@
<a class="nav-link font-weight-light text-muted" href="{{route('settings.dataexport')}}">Data Export</a>
</li>
@if(config('pixelfed.oauth_enabled') == true)
<li class="nav-item">
<hr>
</li>
@ -52,6 +53,8 @@
<li class="nav-item pl-3 {{request()->is('settings/developers')?'active':''}}">
<a class="nav-link font-weight-light text-muted" href="{{route('settings.developers')}}">Developers</a>
</li>
@endif
<li class="nav-item">
<hr>
</li>