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

Update web routes
This commit is contained in:
daniel 2018-09-02 00:11:02 -06:00 committed by GitHub
commit 6968ac874a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 38 deletions

View file

@ -3,41 +3,14 @@
@section('content')
<div class="container">
<div class="col-12">
<div class="card mt-5">
<div class="card-body p-0">
<div class="row">
<div class="col-12 col-md-8 offset-md-2 p-5">
<div class="title text-center pb-3">
<h1>Remote Follow</h1>
<div class="card">
<div class="card-body">
<p class="mb-0 font-weight-bold">This feature is not yet ready for production. Please try again later.</p>
</div>
</div>
<div class="row">
<div class="col-12 col-md-8 offset-md-2 p-5">
<div class="title text-center pb-3">
<h1>Remote Follow</h1>
<div class="card">
<div class="card-body">
<p class="mb-0 font-weight-bold">This feature is not yet ready for production. Please try again later.</p>
</div>
@if (session('status'))
<div class="alert alert-success">
{{ session('status') }}
</div>
@endif
<form method="post">
@csrf
<div class="card rounded-0 card-disabled">
<div class="card-body">
<div class="form-group row mb-2">
<label class="col-sm-3 col-form-labe font-weight-bold">Profile URL</label>
<div class="col-sm-8">
<input type="text" class="form-control" name="url" value="" disabled>
<p class="help-text small text-muted">ex: me@example.com or http://example.net/nickname</p>
</div>
</div>
</div>
<div class="card-footer px-5 text-center">
<button type="submit" class="btn btn-primary py-0 font-weight-bold" disabled>Remote Follow</button>
</div>
</div>
</form>
</div>
</div>
</div>

View file

@ -59,10 +59,10 @@
{{__('navmenu.directMessages')}}
</a> --}}
<div class="dropdown-divider"></div>
<a class="dropdown-item font-weight-bold" href="{{route('remotefollow')}}">
{{-- <a class="dropdown-item font-weight-bold" href="{{route('remotefollow')}}">
<span class="fas fa-user-plus pr-1"></span>
{{__('navmenu.remoteFollow')}}
</a>
</a> --}}
<a class="dropdown-item font-weight-bold" href="{{route('settings')}}">
<span class="fas fa-cog pr-1"></span>
{{__('navmenu.settings')}}

View file

@ -54,8 +54,6 @@ Route::domain(config('pixelfed.domain.app'))->middleware('validemail')->group(fu
Route::group(['prefix' => 'i'], function () {
Route::redirect('/', '/');
Route::get('compose', 'StatusController@compose')->name('compose');
Route::get('remote-follow', 'FederationController@remoteFollow')->name('remotefollow');
Route::post('remote-follow', 'FederationController@remoteFollowStore')->middleware('throttle:100,1440');
Route::post('comment', 'CommentController@store')->middleware('throttle:1000,1440');
Route::post('delete', 'StatusController@delete')->middleware('throttle:1000,1440');
Route::post('mute', 'AccountController@mute')->middleware('throttle:100,1440');