mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update sidebar/settings
This commit is contained in:
parent
6d0c5994da
commit
c394fb76c6
2 changed files with 14 additions and 8 deletions
|
@ -81,14 +81,12 @@ class SettingsController extends Controller
|
|||
|
||||
public function dataImport()
|
||||
{
|
||||
abort_if(!config_cache('pixelfed.import.instagram.enabled'), 404);
|
||||
return view('settings.import.home');
|
||||
}
|
||||
|
||||
public function dataImportInstagram()
|
||||
{
|
||||
abort_if(!config_cache('pixelfed.import.instagram.enabled'), 404);
|
||||
return view('settings.import.instagram.home');
|
||||
abort(404);
|
||||
}
|
||||
|
||||
public function developers()
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<div class="col-12 col-md-3 py-3" style="border-right:1px solid #ccc;">
|
||||
<ul class="nav flex-column settings-nav">
|
||||
<div class="col-12 col-md-3">
|
||||
<ul class="nav flex-column settings-nav py-3">
|
||||
<li class="nav-item pl-3 {{request()->is('settings/home')?'active':''}}">
|
||||
<a class="nav-link font-weight-light text-muted" href="{{route('settings')}}">Account</a>
|
||||
</li>
|
||||
|
@ -38,13 +38,11 @@
|
|||
<li class="nav-item">
|
||||
<hr>
|
||||
</li>
|
||||
@if(config_cache('pixelfed.import.instagram.enabled'))
|
||||
<li class="nav-item pl-3 {{request()->is('*import*')?'active':''}}">
|
||||
<a class="nav-link font-weight-light text-muted" href="{{route('settings.import')}}">Import</a>
|
||||
</li>
|
||||
@endif
|
||||
<li class="nav-item pl-3 {{request()->is('settings/data-export')?'active':''}}">
|
||||
<a class="nav-link font-weight-light text-muted" href="{{route('settings.dataexport')}}">Data Export</a>
|
||||
<a class="nav-link font-weight-light text-muted" href="{{route('settings.dataexport')}}">Export</a>
|
||||
</li>
|
||||
|
||||
@if(config_cache('pixelfed.oauth_enabled') == true)
|
||||
|
@ -67,3 +65,13 @@
|
|||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@push('styles')
|
||||
<style type="text/css">
|
||||
.settings-nav {
|
||||
@media only screen and (min-width: 768px) {
|
||||
border-right: 1px solid #dee2e6 !important
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
|
|
Loading…
Reference in a new issue